Esempio n. 1
0
        public static CorpApp Query(int agentId)
        {
            string url = string.Format(ObjectUtil.SysCulture, WeCorpConst.AGENT_GET,
                                       CorpAccessToken.GetTokenWithSecret(WeixinSettings.Current.CorpUserManagerSecret), agentId);
            CorpApp result = WeUtil.GetFromUri(url, new CorpApp());

            return(result);
        }
Esempio n. 2
0
 public CorpAppUpdateInfo(CorpApp app)
 {
     AgentId            = app.AgentId;
     ReportLocationFlag = app.ReportLocationFlag;
     LogoMediaId        = app.LogoMediaId;
     Name           = app.Name;
     Description    = app.Description;
     RedirectDomain = app.RedirectDomain;
     IsReportUser   = app.IsReportUser;
     IsReportEnter  = app.IsReportEnter;
 }
 public CorpAppUpdateInfo(CorpApp app)
 {
     AgentId = app.AgentId;
     ReportLocationFlag = app.ReportLocationFlag;
     LogoMediaId = app.LogoMediaId;
     Name = app.Name;
     Description = app.Description;
     RedirectDomain = app.RedirectDomain;
     IsReportUser = app.IsReportUser;
     IsReportEnter = app.IsReportEnter;
 }