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 SendNotiMsgToList(List <string> clientidlist, string title, string content, bool isIOS)
        {
            if (isIOS)
            {
                TransmissionTemplate iOSNotiTemplate = Push.GetIOSNotiTemplate(title, content);
                return(Push.PushMsgToList(clientidlist, iOSNotiTemplate));
            }
            NotificationTemplate androidNotiTemplate = Push.GetAndroidNotiTemplate(title, content);

            return(Push.PushMsgToList(clientidlist, androidNotiTemplate));
        }
Exemplo n.º 3
0
        public static bool SendNotyPopMsgToList(List <string> clientidlist, string title, string content, string poptitle, string popcontent, string downloadtitle, string downloadurl)
        {
            NotyPopLoadTemplate notyPopTemplate = Push.GetNotyPopTemplate(title, content, poptitle, popcontent, downloadtitle, downloadurl);

            return(Push.PushMsgToList(clientidlist, notyPopTemplate));
        }
Exemplo n.º 4
0
        public static bool SendLinkMsgToList(List <string> clientidlist, string title, string content, string linkurl)
        {
            LinkTemplate linkTemplate = Push.GetLinkTemplate(title, content, linkurl);

            return(Push.PushMsgToList(clientidlist, linkTemplate));
        }
Exemplo n.º 5
0
        public static bool SendTransMsgToList(List <string> clientidlist, string content)
        {
            TransmissionTemplate transTemplate = Push.GetTransTemplate(content);

            return(Push.PushMsgToList(clientidlist, transTemplate));
        }
Exemplo n.º 6
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.º 7
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.º 8
0
        public static bool SendTransMsgToSingle(string clientid, string content)
        {
            TransmissionTemplate transTemplate = Push.GetTransTemplate(content);

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

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