public static ChatKitQs.Src.Common.Data.Models.Message GetVoiceMessage() { ChatKitQs.Src.Common.Data.Models.Message message = new ChatKitQs.Src.Common.Data.Models.Message() { Id = GetRandomId(), User = GetUser(), Text = null, CreatedAt = new Date() }; message.MessageVoice = new ChatKitQs.Src.Common.Data.Models.Message.Voice() { Url = "http://example.com", Duration = rnd.NextInt(200) + 30 }; return(message); }
public static ChatKitQs.Src.Common.Data.Models.Message GetImageMessage() { ChatKitQs.Src.Common.Data.Models.Message message = new ChatKitQs.Src.Common.Data.Models.Message() { Id = GetRandomId(), User = GetUser(), Text = null, CreatedAt = new Date() }; message.ImageUrl = GetRandomImage(); message.MessageImage = new ChatKitQs.Src.Common.Data.Models.Message.Image() { Url = GetRandomImage() }; return(message); }