149 lines
3.5 KiB
C#
149 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace GZTW.AyaNova.BLL
|
|
{
|
|
/// <summary>
|
|
/// Contains the unique data required to retrieve
|
|
/// a notification message from various notifiable objects
|
|
///
|
|
/// Used to pass the arguments to the object and for caching
|
|
/// of notification messages
|
|
/// </summary>
|
|
[Serializable]
|
|
public class NotifyMessageRequestData
|
|
{
|
|
#pragma warning disable 1591
|
|
private RootObjectTypes mRootObject;
|
|
private int mEventType;
|
|
private Guid mRootObjectID;
|
|
private string mLanguage;
|
|
private int mMaxCharacters;
|
|
private NotifyDeliveryMessageFormats mFormat;
|
|
private Guid mGuidValue;
|
|
private NotifyMessage mMessage;
|
|
//case 1415
|
|
private double dTimeZoneOffset;
|
|
|
|
|
|
public NotifyMessageRequestData(
|
|
RootObjectTypes RootObject,
|
|
int EventType,
|
|
Guid RootObjectID,
|
|
string Language,
|
|
int MaxCharacters,
|
|
NotifyDeliveryMessageFormats Format,
|
|
Guid GuidValue,
|
|
double TimeZoneOffset
|
|
)
|
|
{
|
|
mRootObject=RootObject;
|
|
mEventType=EventType;
|
|
mRootObjectID=RootObjectID;
|
|
mLanguage=Language;
|
|
mMaxCharacters=MaxCharacters;
|
|
mFormat=Format;
|
|
mGuidValue = GuidValue;
|
|
mMessage = null;
|
|
dTimeZoneOffset = TimeZoneOffset;
|
|
}
|
|
|
|
#region public property accessors
|
|
public RootObjectTypes RootObject
|
|
{
|
|
get
|
|
{
|
|
return mRootObject;
|
|
}
|
|
}
|
|
|
|
public int EventType
|
|
{
|
|
get
|
|
{
|
|
return mEventType;
|
|
}
|
|
}
|
|
|
|
public Guid RootObjectID
|
|
{
|
|
get
|
|
{
|
|
return mRootObjectID;
|
|
}
|
|
}
|
|
|
|
public string Language
|
|
{
|
|
get
|
|
{
|
|
return mLanguage;
|
|
}
|
|
}
|
|
|
|
public int MaxCharacters
|
|
{
|
|
get
|
|
{
|
|
return mMaxCharacters;
|
|
}
|
|
}
|
|
|
|
public NotifyDeliveryMessageFormats Format
|
|
{
|
|
get
|
|
{
|
|
return mFormat;
|
|
}
|
|
}
|
|
|
|
public Guid GuidValue
|
|
{
|
|
get
|
|
{
|
|
return mGuidValue;
|
|
}
|
|
}
|
|
|
|
public NotifyMessage Message
|
|
{
|
|
get
|
|
{
|
|
return mMessage;
|
|
}
|
|
set
|
|
{
|
|
mMessage = value;
|
|
}
|
|
}
|
|
|
|
//case 1415
|
|
public double TimeZoneOffset
|
|
{
|
|
get
|
|
{
|
|
return dTimeZoneOffset;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
public bool Equals(NotifyMessageRequestData obj)
|
|
{
|
|
return (
|
|
mRootObject == obj.mRootObject &&
|
|
mRootObjectID == obj.mRootObjectID &&
|
|
mEventType == obj.mEventType &&
|
|
mGuidValue == obj.mGuidValue &&
|
|
mLanguage == obj.mLanguage &&
|
|
mMaxCharacters == obj.mMaxCharacters &&
|
|
mFormat == obj.mFormat &&
|
|
dTimeZoneOffset==obj.dTimeZoneOffset
|
|
);
|
|
}
|
|
#pragma warning restore 1591
|
|
}
|
|
}
|