コード例 #1
0
 public static CommandLogDTO Convert(CommandLog from)
 {
     CommandLogDTO res = new CommandLogDTO();
     res.Id = from.Id;
     res.Name = from.Name;
     res.Sent = from.Sent;
     res.Timestamp = from.Timestamp;
     res.TokenDTO = TokenDTO.Convert(from.Token);
     res.CommandDTO = CommandDTO.Convert(from.Command);
     return res;
 }
コード例 #2
0
        public static CommandLogDTO Convert(CommandLog from)
        {
            CommandLogDTO res = new CommandLogDTO();

            res.Id         = from.Id;
            res.Name       = from.Name;
            res.Sent       = from.Sent;
            res.Timestamp  = from.Timestamp;
            res.TokenDTO   = TokenDTO.Convert(from.Token);
            res.CommandDTO = CommandDTO.Convert(from.Command);
            return(res);
        }