C# Класс PodioAPI.Services.UserService

Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteUserProperty ( string name ) : Task

Deletes the property for the active user with the given name. The property is specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/delete-user-property-29800

GetNotificationSetting ( string clientType, string notificationType ) : Task

Get's the setting for the given client type and notification type.

Podio API Reference: https://developers.podio.com/doc/users/get-notification-setting-3649859

GetNotificationSettings ( string clientType ) : bool>>.Task

Get's the setting for the given client type and notification type.

Podio API Reference: https://developers.podio.com/doc/users/get-notification-setting-3649859

GetProfileField ( string key ) : Task>

Returns the field of the profile for the given key from the active user. For a list of valid keys and their possible values, see the contact area.

Podio API Reference: https://developers.podio.com/doc/users/get-profile-field-22380

GetUser ( ) : Task

Gets the active user.

Podio API Reference: https://developers.podio.com/doc/users/get-user-22378

GetUserProperty ( string name ) : Task

Returns the value of the property for the active user with the given name. The property is specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/get-user-property-29798

GetUserStatus ( ) : Task

Returns the current status for the user. This includes the user data, profile data and notification data.

Podio API Reference: https://developers.podio.com/doc/users/get-user-status-22480

SetUserProperties ( object>.Dictionary properties ) : Task

Sets the values of one or more properties for the active user. The properties are specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/set-user-properties-9052829

SetUserProperty ( string name, dynamic value ) : Task

Sets the value of the property for the active user with the given name. The property is specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/set-user-property-29799

UpdateNotificationSetting ( string clientType, string notificationType, bool value ) : Task

Updates the setting for the given client type and notification type.

Podio API Reference: https://developers.podio.com/doc/users/update-notification-setting-3649918

UpdateNotificationSettings ( string clientType, bool>.Dictionary notificationTypes ) : Task

Updates the setting for the given client type

Podio API Reference: https://developers.podio.com/doc/users/update-notification-settings-3649927

UpdateProfile ( Contact updatedProfile ) : Task

Updates the fields of an existing profile. Fields not specified will not be updated. To delete a field set the value of the field to null.

Podio API Reference: https://developers.podio.com/doc/users/update-profile-22402

UpdateProfileField ( string key, string value ) : Task

Updates the specific field on the user.

Podio API Reference: https://developers.podio.com/doc/users/update-profile-field-22500

UserService ( Podio currentInstance ) : System.Collections.Generic

Описание методов

DeleteUserProperty() публичный Метод

Deletes the property for the active user with the given name. The property is specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/delete-user-property-29800

public DeleteUserProperty ( string name ) : Task
name string
Результат Task

GetNotificationSetting() публичный Метод

Get's the setting for the given client type and notification type.

Podio API Reference: https://developers.podio.com/doc/users/get-notification-setting-3649859

public GetNotificationSetting ( string clientType, string notificationType ) : Task
clientType string Client type: "email" and "mobile".
notificationType string /// Notification type: "digest", "bulletin", "reference", "message", "space", /// "subscription", "user", "reminder", "push_notification", "push_notification_sound" or "push_notification_browser". ///
Результат Task

GetNotificationSettings() публичный Метод

Get's the setting for the given client type and notification type.

Podio API Reference: https://developers.podio.com/doc/users/get-notification-setting-3649859

public GetNotificationSettings ( string clientType ) : bool>>.Task
clientType string Client type: "email" and "mobile".
Результат bool>>.Task

GetProfileField() публичный Метод

Returns the field of the profile for the given key from the active user. For a list of valid keys and their possible values, see the contact area.

Podio API Reference: https://developers.podio.com/doc/users/get-profile-field-22380

public GetProfileField ( string key ) : Task>
key string
Результат Task>

GetUser() публичный Метод

Gets the active user.

Podio API Reference: https://developers.podio.com/doc/users/get-user-22378

public GetUser ( ) : Task
Результат Task

GetUserProperty() публичный Метод

Returns the value of the property for the active user with the given name. The property is specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/get-user-property-29798

public GetUserProperty ( string name ) : Task
name string
Результат Task

GetUserStatus() публичный Метод

Returns the current status for the user. This includes the user data, profile data and notification data.

Podio API Reference: https://developers.podio.com/doc/users/get-user-status-22480

public GetUserStatus ( ) : Task
Результат Task

SetUserProperties() публичный Метод

Sets the values of one or more properties for the active user. The properties are specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/set-user-properties-9052829

public SetUserProperties ( object>.Dictionary properties ) : Task
properties object>.Dictionary The JSON object value of the property
Результат Task

SetUserProperty() публичный Метод

Sets the value of the property for the active user with the given name. The property is specific to the auth client used.

Podio API Reference: https://developers.podio.com/doc/users/set-user-property-29799

public SetUserProperty ( string name, dynamic value ) : Task
name string
value dynamic
Результат Task

UpdateNotificationSetting() публичный Метод

Updates the setting for the given client type and notification type.

Podio API Reference: https://developers.podio.com/doc/users/update-notification-setting-3649918

public UpdateNotificationSetting ( string clientType, string notificationType, bool value ) : Task
clientType string Client type: "email" and "mobile".
notificationType string /// Notification type: "digest", "bulletin", "reference", "message", "space", /// "subscription", "user", "reminder", "push_notification", "push_notification_sound" or "push_notification_browser". ///
value bool
Результат Task

UpdateNotificationSettings() публичный Метод

Updates the setting for the given client type

Podio API Reference: https://developers.podio.com/doc/users/update-notification-settings-3649927

public UpdateNotificationSettings ( string clientType, bool>.Dictionary notificationTypes ) : Task
clientType string Client type: "email" and "mobile".
notificationTypes bool>.Dictionary /// Notification type: "digest", "bulletin", "reference", "message", "space", /// "subscription", "user", "reminder", "push_notification", "push_notification_sound" or "push_notification_browser". ///
Результат Task

UpdateProfile() публичный Метод

Updates the fields of an existing profile. Fields not specified will not be updated. To delete a field set the value of the field to null.

Podio API Reference: https://developers.podio.com/doc/users/update-profile-22402

public UpdateProfile ( Contact updatedProfile ) : Task
updatedProfile PodioAPI.Models.Contact The value or list of values for the given field. For a list of fields see the contact area
Результат Task

UpdateProfileField() публичный Метод

Updates the specific field on the user.

Podio API Reference: https://developers.podio.com/doc/users/update-profile-field-22500

public UpdateProfileField ( string key, string value ) : Task
key string
value string The new value for the profile field.
Результат Task

UserService() публичный Метод

public UserService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
Результат System.Collections.Generic