protected EntityProxy(EntityId entityId, Client client, ResponseDictionary responseDictionary)
 {
     _entityId = entityId;
     _client = client;
     _responseDictionary = responseDictionary;
     this.IsLoaded = false;
 }
        protected Association(EntityId entityId, ResponseDictionary responseDictionary,
            DateTime? contactCreationDate)
        {
            EntityId = entityId;
            _responseDictionary = responseDictionary;
            ContactCreationDate = contactCreationDate;

            ValidateEntityIdType();
        }
        protected Association(EntityId entityId, ResponseDictionary responseDictionary, TimePeriod validFor, bool isHistorical,
            DateTime? contactCreationDate)
        {
            EntityId = entityId;
            _responseDictionary = responseDictionary;
            ValidFor = validFor;
            IsHistorical = isHistorical;
            ContactCreationDate = contactCreationDate;

            ValidateEntityIdType();
        }
 public void MakeEntity()
 {
     _associatedPhone = new Phone(_associatedPhoneId);
     var dict = new ResponseDictionary(null);
     dict.Add(_associatedPhone);
     _entity = new Person(_entityId)
         {
             BusinessAssociations = null,
             LocationAssociations = new List<LocationAssociation>(),
             PhoneAssociations = new List<PhoneAssociation>
                 {
                     new PhoneAssociation(_associatedPhoneId, dict)
                 }
         };
 }
		public PersonAssociation(EntityId entityId, ResponseDictionary responseDictionary)
			: base(entityId, responseDictionary)
		{

		}
		public PersonAssociation(Association from, ResponseDictionary responseDictionary)
			: base(from, responseDictionary)
		{

		}
 internal LocationAssociation(Association from, ResponseDictionary responseDictionary)
     : base(from, responseDictionary)
 {
 }
 protected LocationAssociation(EntityId entityId, ResponseDictionary responseDictionary, TimePeriod validFor,
     bool isHistorical, DateTime? contactCreationDate)
     : base(entityId, responseDictionary, validFor, isHistorical, contactCreationDate)
 {
 }
		public BusinessAssociation(EntityId entityId, ResponseDictionary responseDictionary)
			: base(entityId, responseDictionary)
		{

		}
		public BusinessProxy(EntityId entityId, Client client, ResponseDictionary responseDictionary)
			: base(entityId, client, responseDictionary)
		{

		}
		protected LegalEntityAssociation(EntityId entityId, ResponseDictionary responseDictionary)
			: base(entityId, responseDictionary)
		{

		}
예제 #12
0
 public BusinessProxy(EntityId entityId, Client client, ResponseDictionary responseDictionary)
     : base(entityId, client, responseDictionary)
 {
 }
		internal SerializableAssociation(Association from, ResponseDictionary responseDictionary)
			: base(from, responseDictionary)
		{
			
		}
예제 #14
0
 public PhoneProxy(EntityId entityId, Client client, ResponseDictionary responseDictionary)
     : base(entityId, client, responseDictionary)
 {
 }
		protected SerializableAssociation(EntityId entityId, ResponseDictionary responseDictionary)
			: base(entityId, responseDictionary)
		{
			
		}
 protected Association(EntityId entityId, ResponseDictionary responseDictionary)
     : this(entityId, responseDictionary, null, false, null)
 {
 }
 internal Association(Association from, ResponseDictionary responseDictionary)
     : this(from)
 {
     _responseDictionary = responseDictionary;
 }
		public PersonAssociation(EntityId entityId, ResponseDictionary responseDictionary,
								   DateTime? contactCreationDate)
			: base(entityId, responseDictionary, contactCreationDate)
		{

		}
		internal BusinessAssociation(Association from, ResponseDictionary responseDictionary)
			: base(from, responseDictionary)
		{

		}
 static ResponseDictionary GetDictionary(Client client)
 {
     var dict = new ResponseDictionary(client);
     dict.Add(_person);
     dict.Add(_business);
     dict.Add(_phone);
     dict.Add(_location);
     return dict;
 }
		protected SerializableAssociation(EntityId entityId, ResponseDictionary responseDictionary, DateTime? contactCreationDate)
			: base(entityId, responseDictionary, contactCreationDate)
		{

		}
 public PhoneProxy(EntityId entityId, Client client, ResponseDictionary responseDictionary)
     : base(entityId, client, responseDictionary)
 {
 }
		internal LegalEntityAssociation(Association from, ResponseDictionary responseDictionary)
			: base(from, responseDictionary)
		{

		}