public void stopSession() { SA.Fitness.StopSessionRequest.Builder builder = new SA.Fitness.StopSessionRequest.Builder(); builder.SetIdentifier(SESSION_ID); SA.Fitness.StopSessionRequest request = builder.Build(); request.OnSessionStopped += Request_OnSessionStopped; SA.Fitness.Sessions.Instance.StopSession(request); }
public void StopSession(StopSessionRequest request) { StringBuilder builder = new StringBuilder(); builder.Append(request.Id); builder.Append(Connection.SEPARATOR1); builder.Append(request.SessionId); stopSessionRequests.Add(request.Id, request); Proxy.StopSession(builder.ToString()); }