Ejemplo n.º 1
0
    public static void SendSignInFacebookRequest(string accessToken)
    {
        SSignInFacebookRequest data = new SSignInFacebookRequest
        {
            accessToken = accessToken,
            device      = VKCommon.DeviceId()
        };

        WebServiceController.Instance.SendRequest(WebServiceCode.Code.SignInFacebook, data, HTTPMethods.Post);
    }
Ejemplo n.º 2
0
    // Portal
    #region SingIn - SingUp

    public static void SendSignInRequest(string username, string password)
    {
        SSignInRequest data = new SSignInRequest
        {
            username = username,
            password = password,
            device   = VKCommon.DeviceId()
        };

        WebServiceController.Instance.SendRequest(WebServiceCode.Code.SignIn, data, HTTPMethods.Post);
    }
Ejemplo n.º 3
0
    public static void SendSignUpRequest(string username, string password, string captcha, string token)
    {
        SSignUpRequest data = new SSignUpRequest
        {
            username = username,
            password = password,
            captcha  = captcha,
            token    = token,
            device   = VKCommon.DeviceId()
        };

        WebServiceController.Instance.SendRequest(WebServiceCode.Code.SignUp, data, HTTPMethods.Post);
    }
Ejemplo n.º 4
0
    public static void SendSignInFacebookRequest(string accessToken)
    {
        string dID = UnityEngine.SystemInfo.deviceUniqueIdentifier;
        SSignInFacebookRequest data = new SSignInFacebookRequest
        {
            accessToken = accessToken,
            device      = VKCommon.DeviceId(),
            deviceID    = dID,
            signature   = MD5Helper.Encrypt(string.Format("begin--{0}#{1}--end", accessToken, dID))
        };

        WebServiceController.Instance.SendRequest(WebServiceCode.Code.SignInFacebook, data, HTTPMethods.Post);
    }
Ejemplo n.º 5
0
    public static void SendSignInRequest(string username, string password)
    {
        string         dID  = UnityEngine.SystemInfo.deviceUniqueIdentifier;
        SSignInRequest data = new SSignInRequest
        {
            username  = username,
            password  = password,
            device    = VKCommon.DeviceId(),
            deviceID  = dID,
            signature = MD5Helper.Encrypt(string.Format("begin--{0}#{1}#{2}--end", username, password, dID))
        };

        WebServiceController.Instance.SendRequest(WebServiceCode.Code.SignIn, data, HTTPMethods.Post);
    }