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)); }
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)); }
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)); }
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)); }
public static bool SendTransMsgToList(List <string> clientidlist, string content) { TransmissionTemplate transTemplate = Push.GetTransTemplate(content); return(Push.PushMsgToList(clientidlist, transTemplate)); }
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)); }
public static bool SendLinkMsgToSingle(string clientid, string title, string content, string linkurl) { LinkTemplate linkTemplate = Push.GetLinkTemplate(title, content, linkurl); return(Push.PushMsgToSingleDevice(clientid, linkTemplate)); }
public static bool SendTransMsgToSingle(string clientid, string content) { TransmissionTemplate transTemplate = Push.GetTransTemplate(content); return(Push.PushMsgToSingleDevice(clientid, transTemplate)); }
public static bool PushMsgToLoginOut(string clientid) { TransmissionTemplate transTemplate = Push.GetTransTemplate("loginout"); return(Push.PushMsgToSingleDevice(clientid, transTemplate)); }