Skip to content

Instantly share code, notes, and snippets.

@snapptop
Created February 13, 2016 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snapptop/db5383b333dca4fb0558 to your computer and use it in GitHub Desktop.
Save snapptop/db5383b333dca4fb0558 to your computer and use it in GitHub Desktop.
//Site Type
public virtual SiteType _siteType { get; set; }
public virtual string _siteTypeName { get; set; }
[DataMember(Name = "stn")]
public virtual string SiteTypeName {
//set the person name
set { this._siteTypeName = value; this._siteType = EnumUtility.GetEnumValueFromDescription<SiteType>(value); }
//get the person name
get { return this._siteTypeName; }
}
[DataMember(Name = "st")]
public virtual SiteType SiteType
{
//set the person name
set { this._siteType = value; this._siteTypeName = EnumUtility.GetDescriptionAttribute(value); }
//get the person name
get { return this._siteType; }
}
//Device Type
public virtual DeviceType _deviceType { get; set; }
public virtual string _deviceTypeName { get; set; }
[DataMember(Name = "dtn")]
public virtual string DeviceTypeName
{
//set the person name
set { this._deviceTypeName = value; this._deviceType = EnumUtility.GetEnumValueFromDescription<DeviceType>(value); }
//get the person name
get { return this._deviceTypeName; }
}
[DataMember(Name = "dt")]
public virtual DeviceType DeviceType
{
//set the person name
set { this._deviceType = value; this._deviceTypeName = EnumUtility.GetDescriptionAttribute(value); }
//get the person name
get { return this._deviceType; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment