2016-09-30 10:19:11 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using BS.Shared;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
namespace BeWo.Data.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ChatMessage : BeWoEntityBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public static string PropertyName_ChatText = "ChatText";
|
|
|
|
|
|
|
|
|
|
|
|
public static string PropertyName_Uhrzeit = "Uhrzeit";
|
|
|
|
|
|
|
2016-09-30 10:19:11 +02:00
|
|
|
|
public static string PropertyName_EmpfaengerPersonOid = "EmpfaengerPersonOid";
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
public static string PropertyName_SenderPersonOid = "SenderPersonOid";
|
|
|
|
|
|
|
2016-08-05 12:48:13 +02:00
|
|
|
|
public static string PropertyName_TeamOid = "TeamOid";
|
|
|
|
|
|
|
2016-09-13 11:32:25 +02:00
|
|
|
|
public static string PropertyName_IsDelivered = "IsDelivered";
|
2016-07-25 14:45:38 +02:00
|
|
|
|
|
2016-08-05 12:48:13 +02:00
|
|
|
|
public static string PropertyName_IstGelesen = "IstGelesen";
|
|
|
|
|
|
|
2016-10-21 09:41:14 +02:00
|
|
|
|
public static string PropertyName_MessageId = "MessageId";
|
|
|
|
|
|
|
2016-10-21 11:26:42 +02:00
|
|
|
|
public static string PropertyName_SoundDatei = "SoundDatei";
|
|
|
|
|
|
|
|
|
|
|
|
public static string PropertyName_DokuDatei = "DokuDatei";
|
|
|
|
|
|
|
|
|
|
|
|
public static string PropertyName_BildDatei = "BildDatei";
|
|
|
|
|
|
|
2016-09-13 11:19:36 +02:00
|
|
|
|
private byte[] _ChatText;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
2016-10-21 11:26:42 +02:00
|
|
|
|
private byte[] _SoundDatei;
|
|
|
|
|
|
|
|
|
|
|
|
private byte[] _DokuDatei;
|
|
|
|
|
|
|
|
|
|
|
|
private byte[] _BildDatei;
|
|
|
|
|
|
|
2016-09-30 10:19:11 +02:00
|
|
|
|
private long? _EmpfaengerPersonOid;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
2016-09-13 11:32:25 +02:00
|
|
|
|
private bool _IsDelivered;
|
2016-07-25 14:45:38 +02:00
|
|
|
|
|
2016-08-05 12:48:13 +02:00
|
|
|
|
private int _IstGelesen;
|
|
|
|
|
|
|
2016-09-30 10:19:11 +02:00
|
|
|
|
private long? _SenderPersonOid;
|
|
|
|
|
|
|
2016-08-05 12:48:13 +02:00
|
|
|
|
private long? _TeamOid;
|
|
|
|
|
|
|
2016-10-21 09:41:14 +02:00
|
|
|
|
private string _MessageId;
|
|
|
|
|
|
|
2016-09-30 10:19:11 +02:00
|
|
|
|
private DateTime _Uhrzeit;
|
|
|
|
|
|
|
2016-07-25 09:23:22 +02:00
|
|
|
|
public ChatMessage()
|
|
|
|
|
|
{
|
|
|
|
|
|
_Tid = TableID.ChatMessage;
|
|
|
|
|
|
}
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
2016-10-21 09:41:14 +02:00
|
|
|
|
public virtual string MessageId
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _MessageId; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if(AreDifferent(_MessageId, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_MessageId = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-09-13 11:19:36 +02:00
|
|
|
|
public virtual byte[] ChatText
|
2016-06-27 01:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _ChatText; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_ChatText, value))
|
2016-06-27 01:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
_ChatText = value;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-10-21 11:26:42 +02:00
|
|
|
|
public virtual byte[] SoundDatei
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _SoundDatei; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (AreDifferent(_SoundDatei, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_SoundDatei = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual byte[] DokuDatei
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _DokuDatei; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (AreDifferent(_DokuDatei, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_DokuDatei = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual byte[] BildDatei
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return _BildDatei; }
|
|
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (AreDifferent(_BildDatei, value))
|
|
|
|
|
|
{
|
|
|
|
|
|
_BildDatei = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
public virtual DateTime Uhrzeit
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _Uhrzeit; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_Uhrzeit, value))
|
2016-06-27 01:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
_Uhrzeit = value;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-09-30 10:19:11 +02:00
|
|
|
|
public virtual long? EmpfaengerPersonOid
|
2016-06-27 01:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _EmpfaengerPersonOid; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_EmpfaengerPersonOid, value))
|
2016-06-27 01:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
_EmpfaengerPersonOid = value;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual long? SenderPersonOid
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _SenderPersonOid; }
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_SenderPersonOid, value))
|
2016-06-27 01:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
_SenderPersonOid = value;
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2016-07-25 14:45:38 +02:00
|
|
|
|
|
2016-09-13 11:32:25 +02:00
|
|
|
|
public virtual bool IsDelivered
|
2016-07-25 14:45:38 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _IsDelivered; }
|
2016-07-25 14:45:38 +02:00
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_IsDelivered, value))
|
2016-07-25 14:45:38 +02:00
|
|
|
|
{
|
2016-09-13 11:32:25 +02:00
|
|
|
|
_IsDelivered = value;
|
2016-07-25 14:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2016-08-05 12:48:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public virtual int IstGelesen
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _IstGelesen; }
|
2016-08-05 12:48:13 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_IstGelesen, value))
|
2016-08-05 12:48:13 +02:00
|
|
|
|
{
|
|
|
|
|
|
_IstGelesen = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public virtual long? TeamOid
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
get { return _TeamOid; }
|
2016-08-05 12:48:13 +02:00
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
if(AreDifferent(_TeamOid, value))
|
2016-08-05 12:48:13 +02:00
|
|
|
|
{
|
2016-09-30 10:19:11 +02:00
|
|
|
|
_TeamOid = value;
|
2016-08-05 12:48:13 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2016-06-27 01:45:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|