public MyContactService() { if (userServiceContext == null) { userServiceContext = new UserServiceContext(_accessToken, _apiKey); } if (contactService == null) { contactService = new ContactService(userServiceContext); } }
/// <summary> /// Contact service constructor /// </summary> /// <param name="userServiceContext">User service context</param> public ContactService(IUserServiceContext userServiceContext) : base(userServiceContext) { }
/// <summary> /// Class constructor. /// </summary> /// <param name="userServiceContext"></param> public BaseService(IUserServiceContext userServiceContext) { this.UserServiceContext = userServiceContext; this.RestClient = new RestClient(); }
/// <summary> /// EventSspot service constructor /// </summary> /// <param name="userServiceContext">User service context</param> public EventSpotService(IUserServiceContext userServiceContext) : base(userServiceContext) { }
public ProfileService(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) { }
/// <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) { }
/// <summary> /// Contact tracking service constructor /// </summary> /// <param name="userServiceContext">User service context</param> public ContactTrackingService(IUserServiceContext userServiceContext) : base(userServiceContext) { }
/// <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; }
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) { }
/// <summary> /// ConstantContactFactory constructor /// </summary> /// <param name="userServiceContext">User service context</param> public ConstantContactFactory(IUserServiceContext userServiceContext) { this.userServiceContext = userServiceContext; }
/// <summary> /// List service constructor /// </summary> /// <param name="userServiceContext">User service context</param> public ListService(IUserServiceContext userServiceContext) : base(userServiceContext) { }
public UserService(IUserServiceContext userServiceContext) { _userServiceContext = userServiceContext; }
/// <summary> /// Activity service constructor /// </summary> /// <param name="userServiceContext">User service context</param> public ActivityService(IUserServiceContext userServiceContext) : base(userServiceContext) { }