Example #1
0
    void OnClick()
    {
        string appname     = inputAppName.text;
        string versionId   = inputVersionId.text;
        string versionCode = inputVersionCode.text;
        string iconPath    = inputIconPath.text;
        string description = inputDescription.text;

        if (string.IsNullOrEmpty(appname) ||
            string.IsNullOrEmpty(versionId) ||
            string.IsNullOrEmpty(versionCode)
            )
        {
            Debug.LogError("some value is null");
            return;
        }
        int realCode = System.Int32.Parse(versionCode);

        AppInfo.ActionAddApp(new AppInfo(
                                 appname, versionId, realCode, iconPath, description
                                 ), User.CurToken);
    }