Прямая речь: He says, "Mary will do it.".
Косвенная: He says (that) Mary will do it.
Прямая: He says to me, "I know it."
косвенная: He tells me that he knows it.
прямая: He said to me: "I have seen you somewhere."
косвенная: He told me that he had seen me somewhere.