Пример #1
0
        /// <summary>
        /// 方法说明:SDK发送其他消息(结构是聊天消息的标准结构)
        /// 完成时间:2015-05-16
        /// </summary>
        /// <param name="otherMsg">发送的其他消息实体</param>
        /// <param name="errorMsg">错误提示</param>
        /// <returns>是否成功发其他标准消息</returns>
        public bool SdkPublishOtherMsg(MsSdkOther.SdkOtherBase otherMsg, ref string errorMsg)
        {
            var jsonStr = MsgConverter.GetJsonByOtherMsg(otherMsg, ref errorMsg);

            return(!string.IsNullOrEmpty(jsonStr) && Publish(TopicSend.sdk_send.ToString(), jsonStr, false, ref errorMsg));
        }