private void listSubscriptions() { //List subscriptions SA.Fitness.SubscriptionsRequest.Builder builder = new SA.Fitness.SubscriptionsRequest.Builder(); SA.Fitness.SubscriptionsRequest request = builder.Build(); request.OnRequestFinished += Request_OnRequestFinished1; SA.Fitness.Recording.Instance.ListSubscriptions(request); }
public void ListSubscriptions(SubscriptionsRequest request) { StringBuilder builder = new StringBuilder(); builder.Append(request.Id); builder.Append(Connection.SEPARATOR1); builder.Append(request.DataType == null ? string.Empty : request.DataType.Value); subsRequests.Add(request.Id, request); Proxy.ListSubscriptions(builder.ToString()); }