Beispiel #1
0
        private string UpdateUserAppFieldsInfo()
        {
            SetUserAppFieldsInfoParams actionParams = JavaScriptConvert.DeserializeObject <SetUserAppFieldsInfoParams>(UnicodeToString(JsonParams));

            UserApplicationInfo userAppInfo = ManyouApplications.GetUserApplicationInfo(actionParams.UId, actionParams.AppId.ToString())[0];

            userAppInfo.MYML        = actionParams.Markup != "" ? actionParams.Markup : userAppInfo.MYML;
            userAppInfo.ProfileLink = actionParams.ActionMarkup != "" ? actionParams.ActionMarkup : userAppInfo.ProfileLink;

            return(GetResult(ManyouApplications.UpdateUserApplication(userAppInfo)));
        }
        public string Get()
        {
            GetUserApplicationMessageParams actionParams = JavaScriptConvert.DeserializeObject <GetUserApplicationMessageParams>(JsonParams);

            List <UserApplicationInfo> userAppList = ManyouApplications.GetUserApplicationInfo(actionParams.Uid, actionParams.AppIdList);

            List <UserApplicationMessage> userAppMsgList = new List <UserApplicationMessage>();

            foreach (UserApplicationInfo appInfo in userAppList)
            {
                userAppMsgList.Add(LoadSingleUserApplicationMessage(appInfo));
            }

            return(GetResult(userAppMsgList));
        }