Exemple #1
0
		/// <summary>
		/// Convert a MamdaSecurityStatus to an appropriate, displayable string
		/// </summary>
		public static string toString (MamdaSecurityStatus.mamdaSecurityStatus securityStatus)
		{
			switch (securityStatus)
			{
				case  mamdaSecurityStatus.SECURITY_STATUS_NONE:			return SECURITY_STATUS_STR_NONE;
				case  mamdaSecurityStatus.SECURITY_STATUS_NORMAL:		return SECURITY_STATUS_STR_NORMAL;
				case  mamdaSecurityStatus.SECURITY_STATUS_CLOSED:		return SECURITY_STATUS_STR_CLOSED;
				case  mamdaSecurityStatus.SECURITY_STATUS_HALTED:		return SECURITY_STATUS_STR_HALTED;
				case  mamdaSecurityStatus.SECURITY_STATUS_NOT_EXIST:	return SECURITY_STATUS_STR_NOT_EXIST;
				case  mamdaSecurityStatus.SECURITY_STATUS_DELETED:		return SECURITY_STATUS_STR_DELETED;
				case  mamdaSecurityStatus.SECURITY_STATUS_AUCTION:		return SECURITY_STATUS_STR_AUCTION;
				case  mamdaSecurityStatus.SECURITY_STATUS_CROSSING:		return SECURITY_STATUS_STR_CROSSING;
                case  mamdaSecurityStatus.SECURITY_STATUS_SUSPENDED:    return SECURITY_STATUS_STR_SUSPENDED;
                case  mamdaSecurityStatus.SECURITY_STATUS_AT_LAST:      return SECURITY_STATUS_STR_AT_LAST;
                case  mamdaSecurityStatus.SECURITY_STATUS_INACTIVE:     return SECURITY_STATUS_STR_INACTIVE;
				case  mamdaSecurityStatus.SECURITY_STATUS_UNKNOWN:
				default:
					return "Unknown";
			}
		}
 public MamdaSecurityStatus.mamdaSecurityStatus getSecurityStatusEnum()
 {
     return(MamdaSecurityStatus.mamdaSecurityStatusFromString(mSecurityStatusCache.mSecStatusStr));
 }
 public long getSecurityStatus()
 {
     return((long)MamdaSecurityStatus.mamdaSecurityStatusFromString(mSecurityStatusCache.mSecStatusStr));
 }
		/// <summary>
		/// <see cref="MamdaSecurityStatusUpdate.getSecurityStatusEnum()"/>
		/// </summary>
		/// <returns</returns>
		public void setSecurityStatusEnum(MamdaSecurityStatus.mamdaSecurityStatus secStatus)
		{
			mSecurityStatusEnum = secStatus;
		}