public MyContactService()
 {
     if (userServiceContext == null)
     {
         userServiceContext = new UserServiceContext(_accessToken, _apiKey);
     }
     if (contactService == null)
     {
         contactService = new ContactService(userServiceContext);
     }
 }
Example #2
0
 /// <summary>
 /// Contact service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ContactService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #3
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="userServiceContext"></param>
 public BaseService(IUserServiceContext userServiceContext)
 {
     this.UserServiceContext = userServiceContext;
     this.RestClient         = new RestClient();
 }
Example #4
0
 /// <summary>
 /// EventSspot service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public EventSpotService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #5
0
 public ProfileService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #6
0
 /// <summary>
 /// EventSspot service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public EventSpotService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
 /// <summary>
 /// Campaign tracking service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public CampaignTrackingService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
 /// <summary>
 /// Email campaign service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public EmailCampaignService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
 /// <summary>
 /// My library service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public MyLibraryService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #10
0
 /// <summary>
 /// Bulk status report service constructor
 /// </summary>
 /// <param name="userServiceContext"></param>
 public BulkStatusService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
 /// <summary>
 /// Account service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public AccountService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #12
0
 /// <summary>
 /// Contact tracking service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ContactTrackingService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #13
0
 /// <summary>
 /// Contact tracking service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ContactTrackingService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #14
0
 /// <summary>
 /// Constructor with the option to to supply an alternative rest client to be used.
 /// </summary>
 /// <param name="restClient">RestClientInterface implementation to be used in the service.</param>
 /// <param name="userServiceContext">User service context.</param>
 public BaseService(IRestClient restClient, IUserServiceContext userServiceContext)
 {
     this.RestClient = restClient;
     this.UserServiceContext = userServiceContext;
 }
Example #15
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 /// <param name="userServiceContext"></param>
 public BaseService(IUserServiceContext userServiceContext)
 {
     this.UserServiceContext = userServiceContext;
     this.RestClient = new RestClient();
 }
 public TrackAndIdentifyService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
 /// <summary>
 /// Campaign schedule service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public CampaignScheduleService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #18
0
 /// <summary>
 /// Contact service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ContactService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #19
0
 /// <summary>
 /// ConstantContactFactory constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ConstantContactFactory(IUserServiceContext userServiceContext)
 {
     this.userServiceContext = userServiceContext;
 }
Example #20
0
 /// <summary>
 /// Campaign schedule service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public CampaignScheduleService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #21
0
 /// <summary>
 /// List service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ListService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #22
0
 /// <summary>
 /// Campaign tracking service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public CampaignTrackingService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
 /// <summary>
 /// ConstantContactFactory constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ConstantContactFactory(IUserServiceContext userServiceContext)
 {
     this.userServiceContext = userServiceContext;
 }
 public UserService(IUserServiceContext userServiceContext)
 {
     _userServiceContext = userServiceContext;
 }
 /// <summary>
 /// Email campaign service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public EmailCampaignService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #26
0
 /// <summary>
 /// Account service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public AccountService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #27
0
 /// <summary>
 /// Bulk status report service constructor
 /// </summary>
 /// <param name="userServiceContext"></param>
 public BulkStatusService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #28
0
 /// <summary>
 /// List service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ListService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #29
0
 /// <summary>
 /// Constructor with the option to to supply an alternative rest client to be used.
 /// </summary>
 /// <param name="restClient">RestClientInterface implementation to be used in the service.</param>
 /// <param name="userServiceContext">User service context.</param>
 public BaseService(IRestClient restClient, IUserServiceContext userServiceContext)
 {
     this.RestClient         = restClient;
     this.UserServiceContext = userServiceContext;
 }
Example #30
0
 /// <summary>
 /// Activity service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ActivityService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #31
0
 /// <summary>
 /// Activity service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public ActivityService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }
Example #32
0
 /// <summary>
 /// My library service constructor
 /// </summary>
 /// <param name="userServiceContext">User service context</param>
 public MyLibraryService(IUserServiceContext userServiceContext)
     : base(userServiceContext)
 {
 }