示例#1
0
        /// <summary>
        /// 绑定别名的所有ClientId解绑
        /// </summary>
        /// <param name="accountId">用户主键</param>
        /// <returns></returns>
        public static Result <string> AliasUnBindAll(long accountId)
        {
            var dictionary = new Dictionary <string, dynamic> {
                { "accountId", accountId }
            };
            var result = HttpRequestHelper.GateWaySync <Result <string> >("ps.push.alias.unbind", dictionary);

            return(result);
        }
示例#2
0
        /// <summary>
        /// 推送消息
        /// </summary>
        /// <param name="accountId">用户主键</param>
        /// <param name="transmissionContent">透传内容</param>
        /// <param name="content">通知栏内容</param>
        /// <returns></returns>
        public static Result <string> PushMessageToApp(long accountId, string transmissionContent, string content)
        {
            var dictionary = new Dictionary <string, dynamic> {
                { "AccountId", accountId },
                { "TransmissionContent", transmissionContent },
                { "Content", content }
            };
            var result = HttpRequestHelper.GateWaySync <Result <string> >("ps.push.send", dictionary);

            return(result);
        }