C# Class BuildIt.Bot.Client.Services.BotClientMobileAppClient

Inheritance: IBotClientMobileAppClient
显示文件 Open project: builttoroam/BuildIt Class Usage Examples

Public Methods

Method Description
BotClientMobileAppClient ( EndpointRouteDetails endpointRouteDetails ) : System

Route to the server is build from BaseServiceUrl, ServiceAffix and registerPushRoute variables, specified in the constructor. The route by default could look like this: [your_base_url]/api/registerpush

DeregisterPushAsync ( PushRegistration pushRegistration ) : System.Threading.Tasks.Task

RegisterPushAsync ( PushRegistration pushRegistration ) : Task

Method which, by making a call to the service, registers your device to push notifications hub.

Method Details

BotClientMobileAppClient() public method

Route to the server is build from BaseServiceUrl, ServiceAffix and registerPushRoute variables, specified in the constructor. The route by default could look like this: [your_base_url]/api/registerpush
public BotClientMobileAppClient ( EndpointRouteDetails endpointRouteDetails ) : System
endpointRouteDetails BuildIt.Bot.Client.Models.EndpointRouteDetails
return System

DeregisterPushAsync() public method

public DeregisterPushAsync ( PushRegistration pushRegistration ) : System.Threading.Tasks.Task
pushRegistration BuildIt.Web.Models.PushNotifications.PushRegistration
return System.Threading.Tasks.Task

RegisterPushAsync() public method

Method which, by making a call to the service, registers your device to push notifications hub.
public RegisterPushAsync ( PushRegistration pushRegistration ) : Task
pushRegistration BuildIt.Web.Models.PushNotifications.PushRegistration
return Task