예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #5
0
        public static bool SendTransMsgToList(List <string> clientidlist, string content)
        {
            TransmissionTemplate transTemplate = Push.GetTransTemplate(content);

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

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

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