155 lines
3.4 KiB
C#
155 lines
3.4 KiB
C#
using BS.Shared;
|
|
using System;
|
|
|
|
namespace BeWo.Data.Entities
|
|
{
|
|
public class ChatMessage : BeWoEntityBase
|
|
{
|
|
|
|
public static string PropertyName_ChatText = "ChatText";
|
|
|
|
public static string PropertyName_Uhrzeit = "Uhrzeit";
|
|
|
|
public static string PropertyName_EmpfängerPersonOid = "EmpfängerPersonOid";
|
|
|
|
public static string PropertyName_SenderPersonOid = "SenderPersonOid";
|
|
|
|
public static string PropertyName_TeamOid = "TeamOid";
|
|
|
|
public static string PropertyName_IsDelivered = "IsDelivered";
|
|
|
|
public static string PropertyName_IstGelesen = "IstGelesen";
|
|
|
|
private string _ChatText;
|
|
|
|
private DateTime _Uhrzeit;
|
|
|
|
private long? _EmpfängerPersonOid;
|
|
|
|
private long? _SenderPersonOid;
|
|
|
|
private bool _IsDelivered;
|
|
|
|
private int _IstGelesen;
|
|
|
|
private long? _TeamOid;
|
|
|
|
public ChatMessage()
|
|
{
|
|
_Tid = TableID.ChatMessage;
|
|
}
|
|
|
|
public virtual string ChatText
|
|
{
|
|
get
|
|
{
|
|
return _ChatText;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._ChatText, value))
|
|
{
|
|
this._ChatText = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual DateTime Uhrzeit
|
|
{
|
|
get
|
|
{
|
|
return this._Uhrzeit;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._Uhrzeit, value))
|
|
{
|
|
this._Uhrzeit = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long? EmpfängerPersonOid
|
|
{
|
|
get
|
|
{
|
|
return this._EmpfängerPersonOid;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._EmpfängerPersonOid, value))
|
|
{
|
|
this._EmpfängerPersonOid = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long? SenderPersonOid
|
|
{
|
|
get
|
|
{
|
|
return this._SenderPersonOid;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._SenderPersonOid, value))
|
|
{
|
|
this._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 (this.AreDifferent(this._TeamOid, value))
|
|
{
|
|
this._TeamOid = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |