Beispiel #1
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);
    }
    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);
    }