public void SaveBroadcastReply(PublicBroadcast broadcast, PublicBroadcast broadcastReply) { broadcast.BroadcastReplies.Add(broadcastReply); }
public TwilioResponse SavePublicReply(VoiceRequest request, int profileId, int lastBroadcastIdx, int? subBroadcastIdx) { var response = new TwilioResponse(); var broadcast = broadcastManager.Get(lastBroadcastIdx); response.Say("Thank you, your response has been sent."); if (subBroadcastIdx.HasValue) { //play next broadcast reply response.Redirect(ivrRouteProvider.GetUrlMethod(IVRRoutes.BROADCASTS_PLAY_PUBLIC_REPLY, profileId, lastBroadcastIdx, ++subBroadcastIdx)); } else { //play next public broadcast response.Redirect(ivrRouteProvider.GetUrlMethod(IVRRoutes.BROADCASTS_LISTEN_TO_ALL_PUBLIC, profileId, ++lastBroadcastIdx)); } PublicBroadcast broadcastReply = new PublicBroadcast() { FromProfileId = profileId, Url = request.RecordingUrl }; broadcastManager.SaveBroadcastReply(broadcast, broadcastReply); return response; }
public void SaveBroadcast(PublicBroadcast broadcast) { publicBroadcasts.Add(broadcast); }