public ShareClient(string username, string password, ShareServer shareServer = ShareServer.ShareServerUS) { this.Username = username; this.Password = password; this.SetShareServer(shareServer); }
public DebuggableShareClient(string username, string password, ShareServer shareServer = ShareServer.ShareServerUS, Action <string> handler = null) : base(username, password, shareServer) { this.enableDebug = true; if (handler != null) { this.debugger = handler; } }
public void SetShareServer(ShareServer shareServer) { var newShareServer = shareServer == ShareServer.ShareServerUS ? this.dexcomServerUS : this.dexcomServerNonUS; if (this.token != null && newShareServer != this.dexcomServer) { Console.WriteLine("Invalidating token, because dexcomserver changed"); } this.dexcomServer = newShareServer; }
public ShareClient(ShareServer shareServer = ShareServer.ShareServerUS) { this.SetShareServer(shareServer); }