コード例 #1
0
        public ShareClient(string username, string password, ShareServer shareServer = ShareServer.ShareServerUS)
        {
            this.Username = username;
            this.Password = password;

            this.SetShareServer(shareServer);
        }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
        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;
        }
コード例 #4
0
 public ShareClient(ShareServer shareServer = ShareServer.ShareServerUS)
 {
     this.SetShareServer(shareServer);
 }