예제 #1
0
 public Msgrequest(Msgtype messageType, Oprtype operationType, string date,
                   int classification, int urgency)
     : base(messageType, operationType, date)
 {
     this.classification = classification;
     this.urgency        = urgency;
 }
예제 #2
0
        public static void Log(string msg, Msgtype type = Msgtype.Engine)
        {
#if DEBUG
            switch (type)
            {
            case Msgtype.Engine:
                Console.ForegroundColor = ConsoleColor.DarkGreen;
                break;

            case Msgtype.Game:
                Console.ForegroundColor = ConsoleColor.White;
                break;

            case Msgtype.Error:
                Console.ForegroundColor = ConsoleColor.Red;
                break;
            }
            Console.WriteLine(@"[" + type.ToString().ToUpper() + @"]: " + msg);
#endif
        }
예제 #3
0
 public Msganswer(Msgtype messageType, Oprtype operationType, string date, int errorCode, int confirmCode)
     : base(messageType, operationType, date)
 {
     this.ErrorCode   = errorCode;
     this.ConfirmCode = confirmCode;
 }
예제 #4
0
 public Message(Msgtype messageType, Oprtype operationType, string date)
 {
     this.operationType = operationType;
     this.messageType   = messageType;
     this.date          = date;
 }