/// <summary> /// Initializes a new instance of the <see cref="ClientBase"/> class. /// </summary> /// <param name="client">The Yammer REST client.</param> public ClientBase(Client client) { this.Client = client.Proxy == null ? new JsonServiceClient(client.BearerToken) : new JsonServiceClient(client.BearerToken, client.Proxy, client.Proxy.Credentials); this.Client.Endpoint = new Uri(client.Endpoint); this.Client.Serializer = new JsonDotNetSerializer(); this.Client.Deserializer = new JsonDotNetDeserializer(); this.Client.ResponseErrorHandler = new ResponseErrorHandler(new JsonDotNetDeserializer(), new ErrorToExceptionTranslator()); }
/// <summary> /// Initializes a new instance of the <see cref="SearchClient"/> class. /// </summary> /// <param name="client">The client.</param> public SearchClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="SubscriptionClient"/> class. /// </summary> /// <param name="client">The client.</param> public SubscriptionClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="TopicClient"/> class. /// </summary> /// <param name="client">The client.</param> public TopicClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="NetworkClient"/> class. /// </summary> /// <param name="client">The client.</param> public NetworkClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="NotificationClient"/> class. /// </summary> /// <param name="client">The client.</param> public NotificationClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="UserClient"/> class. /// </summary> /// <param name="client">The client.</param> public UserClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="RelationshipClient"/> class. /// </summary> /// <param name="client">The client.</param> public RelationshipClient(Client client) : base(client) { }
/// <summary> /// Initializes a new instance of the <see cref="MessageClient"/> class. /// </summary> /// <param name="client">The client.</param> public MessageClient(Client client) : base(client) { }