예제 #1
0
        public void Init(string Token, VersionAPI version)
        {
            if (string.IsNullOrWhiteSpace(Token))
            {
                throw new ClashRoyaleAPIException("Token is not specified");
            }

            string tmpVersion = string.Empty;

            this.Token = Token;
            switch (version)
            {
            case VersionAPI.v1:
                tmpVersion = "v1/";
                break;

            default:
                tmpVersion = "v1/";
                break;
            }
            CurrentURL = Path.Combine(BaseURL, tmpVersion);
        }
예제 #2
0
        public frmHome()
        {
            InitializeComponent();

            this.lblRandomInt.Text = "Random: " + VersionAPI.getRandomInteger();
        }
예제 #3
0
 private void btnRefresh_Click(object sender, EventArgs e)
 {
     this.lblRandomInt.Text = "Random: " + VersionAPI.getRandomInteger();
 }