Example #1
0
        public async Task <BroadcastResult> BroadcastMessageAsync(BroadcastMessageResult message, NotificationTypes notification)
        {
            BroadcastContainer container = new BroadcastContainer()
            {
                CreativeMessageId = message.Id,
                NotificationType  = notification
            };

            var result = await PostAsync <BroadcastResult>(container, BroadcastApiUri);

            return(result);
        }
Example #2
0
        public async Task <BroadcastResult> BroadcastMessageAsync(BroadcastMessageResult message, NotificationTypes notification, DateTime scheduleTime)
        {
            BroadcastContainer container = new BroadcastContainer()
            {
                CreativeMessageId = message.Id,
                NotificationType  = notification,
                ScheduleTime      = scheduleTime.ToUnixTimestamp().ToString()
            };

            var result = await PostAsync <BroadcastResult>(container, BroadcastApiUri);

            return(result);
        }