Exemplo n.º 1
0
        public static bool SendNotiMsgToSingle(string clientid, string title, string content, bool isIOS)
        {
            if (isIOS)
            {
                TransmissionTemplate iOSNotiTemplate = Push.GetIOSNotiTemplate(title, content);
                return(Push.PushMsgToSingleDevice(clientid, iOSNotiTemplate));
            }
            NotificationTemplate androidNotiTemplate = Push.GetAndroidNotiTemplate(title, content);

            return(Push.PushMsgToSingleDevice(clientid, androidNotiTemplate));
        }
Exemplo n.º 2
0
        public static bool SendNotyPopMsgToSingle(string clientid, string title, string content, string poptitle, string popcontent, string downloadtitle, string downloadurl)
        {
            NotyPopLoadTemplate notyPopTemplate = Push.GetNotyPopTemplate(title, content, poptitle, popcontent, downloadtitle, downloadurl);

            return(Push.PushMsgToSingleDevice(clientid, notyPopTemplate));
        }
Exemplo n.º 3
0
        public static bool SendLinkMsgToSingle(string clientid, string title, string content, string linkurl)
        {
            LinkTemplate linkTemplate = Push.GetLinkTemplate(title, content, linkurl);

            return(Push.PushMsgToSingleDevice(clientid, linkTemplate));
        }
Exemplo n.º 4
0
        public static bool SendTransMsgToSingle(string clientid, string content)
        {
            TransmissionTemplate transTemplate = Push.GetTransTemplate(content);

            return(Push.PushMsgToSingleDevice(clientid, transTemplate));
        }
Exemplo n.º 5
0
        public static bool PushMsgToLoginOut(string clientid)
        {
            TransmissionTemplate transTemplate = Push.GetTransTemplate("loginout");

            return(Push.PushMsgToSingleDevice(clientid, transTemplate));
        }