Esempio n. 1
0
        public TTNCRequest NewRequest(String target, String name)
        {
            TTNCRequest  NewRequest = new TTNCRequest(this, target, name, "");
            Request_tree t          = new Request_tree();

            t.request = NewRequest;
            t.id      = NewRequest.RequestId;
            this.requests.Add(t);
            return(NewRequest);
        }
Esempio n. 2
0
        private void sessionRequest()
        {
            TTNCRequest request = new TTNCRequest(this, "Auth", "SessionLogin", "SessionRequest");

            request.setData("Username", this.username);
            request.setData("Password", this.password);
            request.setData("VKey", this.vKey);
            request.UserAgent = "TTNC_Client_CSharp";

            Request_tree t = new Request_tree();

            t.request = request;
            t.id      = request.RequestId;
            this.requests.Add(t);
        }