예제 #1
0
 public DRP(DRPDevType devType, string userName, string servID, string servName, float data, ulong token, DRPMessageType messageType)
 {
     this.devType     = devType;
     this.userName    = userName;
     this.servID      = servID;
     this.servName    = servName;
     this.data        = data;
     this.token       = token;
     this.messageType = messageType;
     this.date        = DateTime.Now;
 }
예제 #2
0
        /**
         * convert enum type to string
         */
        private static string stringer(DRPDevType type)
        {
            switch (type)
            {
            case DRPDevType.APP:
                return("APP");

            case DRPDevType.RBPI:
                return("RBPI");

            default:
                return("");
            }
        }