using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChatController.Klassen
{
    public class ChatGruppenDaten
    {
        public Dictionary<string, GroupInput[]> Response { get; set; }
        public string Message { get; set; }
        public string Errors { get; set; }
        public bool Success { get; set; }
    }


    public class GroupInput
    {
        public long Oid { get; set; }
        public string Name { get; set; }
        public string Avatar { get; set; }
        public string Mobile { get; set; }
        public GroupLastMessage LastMessage { get; set; }
        public GroupUsers[] Users { get; set; }
        public bool Onlyemployees { get; set; }
    }

    public class GroupLastMessage
    {
        public long Id { get; set; }
        public string Text { get; set; }
        public string File { get; set; }
        public string OriginalFileName { get; set; }
        public string SmallerImage { get; set; }
        public LastMessageTimeStamp Timestamp { get; set; }
        public long CreatedAt { get; set; }
        public long UserId { get; set; }
        public string UserIdManage { get; set; }
        public string UserName { get; set; }
        public string UserPicture { get; set; }
        public string GroupId { get; set; }
    }

    public class GroupUsers
    {
        public long Oid { get; set; }
        public string Userid_Manage { get; set; }
        public string Firstname { get; set; }
        public string Lastname { get; set; }
        public string Mobile { get; set; }
        public string Picture { get; set; }
        public bool Is_Employee { get; set; }
    }

    public class LastMessageTimeStamp
    {
        public string Date { get; set; }
        public int TimezoneType { get; set; }
        public string Timezone { get; set; }
    }
}
