Esempio n. 1
0
        public String SendFMS(String CorpNum, String plusFriendID, String snd, String content, String altContent, String altSendType, String receiverNum, String receiverName, bool adsYN, DateTime?sndDT,
                              List <KakaoButton> buttons, String fmsfilepath, String imageURL, String UserID, String requestNum)
        {
            List <KakaoReceiver> messages = new List <KakaoReceiver>();
            KakaoReceiver        receiver = new KakaoReceiver();

            receiver.rcv    = receiverNum;
            receiver.rcvnm  = receiverName;
            receiver.msg    = content;
            receiver.altmsg = altContent;

            messages.Add(receiver);

            return(SendFMS(CorpNum, plusFriendID, snd, null, null, altSendType, adsYN, sndDT, messages, buttons, fmsfilepath, imageURL, UserID, requestNum));
        }
        //친구톡 이미지 단건전송
        public string SendFMS(string CorpNum, string plusFriendID, string snd, string receiverNum, string receiverName,
                              string content, string altContent, List <KakaoButton> buttons, string altSendType, bool adsYN,
                              DateTime?sndDT, string imageURL, string fmsfilepath, string requestNum = null, string UserID = null)
        {
            List <KakaoReceiver> receivers = new List <KakaoReceiver>();

            KakaoReceiver receiver = new KakaoReceiver();

            receiver.rcv    = receiverNum;
            receiver.rcvnm  = receiverName;
            receiver.msg    = content;
            receiver.altmsg = altContent;

            receivers.Add(receiver);

            return(SendFMS(CorpNum, plusFriendID, snd, content, altContent, receivers, buttons, altSendType, adsYN,
                           sndDT, imageURL, fmsfilepath, requestNum, UserID));
        }
Esempio n. 3
0
        // 버튼 추가
        public String SendATS(String CorpNum, String templateCode, String snd, String altSendType, DateTime?sndDT, String receiveNum, String receiveName, String msg, String altmsg, String requestNum, List <KakaoButton> buttons)
        {
            if (String.IsNullOrEmpty(receiveNum))
            {
                throw new PopbillException(-99999999, "수신번호가 입력되지 않았습니다.");
            }

            List <KakaoReceiver> messages   = new List <KakaoReceiver>();
            KakaoReceiver        messageObj = new KakaoReceiver();

            messageObj.rcv    = receiveNum;
            messageObj.rcvnm  = receiveName;
            messageObj.msg    = msg;
            messageObj.altmsg = altmsg;

            messages.Add(messageObj);

            return(SendATS(CorpNum, templateCode, snd, null, null, altSendType, sndDT, messages, null, requestNum, buttons));
        }
        //알림톡 단건전송
        public string SendATS(string CorpNum, string templateCode, string snd, string receiveNum, string receiveName,
                              string msg, string altmsg, string altSendType, DateTime?sndDT, string requestNum = null,
                              string UserID = null, List <KakaoButton> buttons = null)
        {
            if (string.IsNullOrEmpty(receiveNum))
            {
                throw new PopbillException(-99999999, "수신번호가 입력되지 않았습니다.");
            }

            List <KakaoReceiver> receivers = new List <KakaoReceiver>();

            KakaoReceiver receiver = new KakaoReceiver();

            receiver.rcv    = receiveNum;
            receiver.rcvnm  = receiveName;
            receiver.msg    = msg;
            receiver.altmsg = altmsg;

            receivers.Add(receiver);

            return(SendATS(CorpNum, templateCode, snd, msg, altmsg, receivers, altSendType, sndDT, requestNum, UserID, buttons));
        }