/// <summary> /// Reads the stream. /// </summary> /// <param name="stream">Stream.</param> protected override void ReadStream(Stream stream) { if (stream == null) { resultCallback(new List <PositionTurn> () { }, new Exception("No turn received")); return; } string fileName = PositionId.ToString() + ".html"; StreamReader reader = new StreamReader(stream); string content = reader.ReadToEnd().Replace("url(", "url(" + Phoenix.Application.BASE_URL); List <PositionTurn> list = new List <PositionTurn> () { new PositionTurn { Id = PositionId, Content = content } }; Application.DocumentFolder.WriteFile(fileName, content); resultCallback(list, null); }
public override string ToString() { return($"{FirstName}\n{LastName}\n{PositionId.ToString()}\n{Email}\n{Adress}"); }