168 lines
3.8 KiB
C#
168 lines
3.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BS.Shared;
|
|
|
|
namespace BeWo.Data.Entities
|
|
{
|
|
public class ChatMessage : BeWoEntityBase
|
|
{
|
|
public static string PropertyName_ChatText = "ChatText";
|
|
|
|
public static string PropertyName_Uhrzeit = "Uhrzeit";
|
|
|
|
public static string PropertyName_EmpfaengerPersonOid = "EmpfaengerPersonOid";
|
|
|
|
public static string PropertyName_SenderPersonOid = "SenderPersonOid";
|
|
|
|
public static string PropertyName_TeamOid = "TeamOid";
|
|
|
|
public static string PropertyName_IsDelivered = "IsDelivered";
|
|
|
|
public static string PropertyName_IstGelesen = "IstGelesen";
|
|
|
|
public static string PropertyName_MessageId = "MessageId";
|
|
|
|
public static string PropertyName_MediaTyp = "MediaTyp";
|
|
|
|
private byte[] _ChatText;
|
|
|
|
private int _MediaTyp;
|
|
|
|
private long? _EmpfaengerPersonOid;
|
|
|
|
private bool _IsDelivered;
|
|
|
|
private int _IstGelesen;
|
|
|
|
private long? _SenderPersonOid;
|
|
|
|
private long? _TeamOid;
|
|
|
|
private string _MessageId;
|
|
|
|
private DateTime _Uhrzeit;
|
|
|
|
public ChatMessage()
|
|
{
|
|
_Tid = TableID.ChatMessage;
|
|
}
|
|
|
|
public virtual string MessageId
|
|
{
|
|
get { return _MessageId; }
|
|
set
|
|
{
|
|
if(AreDifferent(_MessageId, value))
|
|
{
|
|
_MessageId = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual byte[] ChatText
|
|
{
|
|
get { return _ChatText; }
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_ChatText, value))
|
|
{
|
|
_ChatText = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public virtual DateTime Uhrzeit
|
|
{
|
|
get { return _Uhrzeit; }
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_Uhrzeit, value))
|
|
{
|
|
_Uhrzeit = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long? EmpfaengerPersonOid
|
|
{
|
|
get { return _EmpfaengerPersonOid; }
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_EmpfaengerPersonOid, value))
|
|
{
|
|
_EmpfaengerPersonOid = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long? SenderPersonOid
|
|
{
|
|
get { return _SenderPersonOid; }
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_SenderPersonOid, value))
|
|
{
|
|
_SenderPersonOid = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual bool IsDelivered
|
|
{
|
|
get { return _IsDelivered; }
|
|
set
|
|
{
|
|
if(AreDifferent(_IsDelivered, value))
|
|
{
|
|
_IsDelivered = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public virtual int IstGelesen
|
|
{
|
|
get { return _IstGelesen; }
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_IstGelesen, value))
|
|
{
|
|
_IstGelesen = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public virtual long? TeamOid
|
|
{
|
|
get { return _TeamOid; }
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_TeamOid, value))
|
|
{
|
|
_TeamOid = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual int MediaTyp
|
|
{
|
|
get { return _MediaTyp; }
|
|
set
|
|
{
|
|
if (AreDifferent(_MediaTyp, value))
|
|
{
|
|
_MediaTyp = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
} |