Example #1
0
        public Data(User user , Dictionary<Patient, Professional[]> followers, DocumentSerializable documents)
		{
            _user = user;
            _follow = followers;
			_documents = documents;
            _documentsAdded = new DocumentSerializable(new List<Message>(), new List<Prescription>());
		}
Example #2
0
 public Data(User user, Dictionary<Patient, Professional[]> followers, DocumentSerializable documents, DocumentSerializable documentsAdded)
 {
     _user = user;
     _follow = followers;
     _documents = documents;
     _documentsAdded = documentsAdded;
     _needUpdate = false;
 }
Example #3
0
 public DocumentSerializableXML CreateDocumentSerializable(DocumentSerializable json)
 {
     List<MessageXML> m = CreateMessageList(json.Messages);
     List<PrescriptionXML> p = CreatePrescriptionList(json.Prescriptions);
     DocumentSerializableXML d = new DocumentSerializableXML();
     d.Message = m;
     d.Prescription = p;
     return d;
 }