public ZendeskClient(Uri baseUri, ZendeskDefaultConfiguration configuration, ISerializer serializer = null, IHttpChannel httpChannel = null, ILogAdapter logger = null) :base(baseUri, configuration, serializer, httpChannel, logger) { Tickets = new TicketResource(this); TicketComments = new TicketCommentResource(this); Organizations = new OrganizationResource(this); Search = new SearchResource(this); Groups = new GroupsResource(this); AssignableGroups = new AssignableGroupResource(this); Users = new UserResource(this); UserIdentities = new UserIdentityResource(this); OrganizationMemberships = new OrganizationMembershipResource(this); }
public ZendeskClient(Uri baseUri, ZendeskDefaultConfiguration configuration, ISerializer serializer = null, IHttpChannel httpChannel = null, ILogAdapter logger = null) : base(baseUri, configuration, serializer, httpChannel, logger) { Tickets = new TicketResource(this); TicketComments = new TicketCommentResource(this); Organizations = new OrganizationResource(this); Search = new SearchResource(this); Groups = new GroupsResource(this); AssignableGroups = new AssignableGroupResource(this); Users = new UserResource(this); UserIdentities = new UserIdentityResource(this); OrganizationMemberships = new OrganizationMembershipResource(this); }
protected ClientBase(Uri baseUri, ZendeskDefaultConfiguration configuration, ISerializer serializer = null, IHttpChannel httpChannel = null, ILogAdapter loggerAdapter = null) { if (baseUri == null) { throw new ArgumentNullException("baseUri"); } var logger = loggerAdapter ?? new Logging.SystemDiagnosticsAdapter(); _baseUri = baseUri; _configuration = configuration; _http = httpChannel ?? new HttpChannel(); _serializer = serializer ?? new Serialization.ZendeskJsonSerializer(); logger.Debug(string.Format("Created Zendesk client. BaseUri: {0}, Serializer: {1}, HttpChannel: {2}, Logger: {3}", _baseUri, _serializer.GetType().Name, _http.GetType().Name, logger.GetType().Name)); }