예제 #1
0
        }         //构造函数 字节数组转化为数据包

        public StationOperationPackage(string sender, string IPandPort, string receiver,
                                       Enum_OP opType,
                                       int stationid, string stationname) : base(sender, IPandPort, receiver)
        {
            MessageType      = MESSAGETYPE.K_STATION_OPERATION_PACKAGE;
            this.opType      = opType;
            this.stationid   = stationid;
            this.stationname = stationname;
        }         //构造函数 接受发送者,接收者字符串,注册用户名与注册密码
예제 #2
0
        }         //构造函数 字节数组转化为数据包

        public LineOperationPackage(string sender, string IPandPort, string receiver,
                                    Enum_OP opType,
                                    int lineid, string username) : base(sender, IPandPort, receiver)
        {
            MessageType   = MESSAGETYPE.K_LINE_OPERATION_PACKAGE;
            this.opType   = opType;
            this.lineid   = lineid;
            this.linename = username;
        }         //构造函数 接受发送者,接收者字符串,注册用户名与注册密码
예제 #3
0
        }         //构造函数 字节数组转化为数据包

        public StationLineOperationPackage(string sender, string IPandPort, string receiver,
                                           Enum_OP opType,
                                           int stationid, int lineid, int stationorder) : base(sender, IPandPort, receiver)
        {
            MessageType       = MESSAGETYPE.K_STATIONLINE_OPERATION_PACKAGE;
            this.opType       = opType;
            this.stationid    = stationid;
            this.lineid       = lineid;
            this.stationorder = stationorder;
        }         //构造函数 接受发送者,接收者字符串,注册用户名与注册密码
예제 #4
0
        }         //构造函数 字节数组转化为数据包

        public TicketPriceOperationPackage(string sender, string IPandPort, string receiver,
                                           Enum_OP opType,
                                           int enterstationid, int leavestationid, int lineid, float ticketprice) : base(sender, IPandPort, receiver)
        {
            MessageType         = MESSAGETYPE.K_TICKETPRICE_OPERATION_PACKAGE;
            this.opType         = opType;
            this.enterstationid = enterstationid;
            this.leavestationid = leavestationid;
            this.lineid         = lineid;
            this.ticketprice    = ticketprice;
        }         //构造函数 接受发送者,接收者字符串,注册用户名与注册密码
예제 #5
0
        }         //构造函数 字节数组转化为数据包

        public TrainOperationPackage(string sender, string IPandPort, string receiver,
                                     Enum_OP opType,
                                     int trainid, int lineid, string traintype, int seatcount) : base(sender, IPandPort, receiver)
        {
            MessageType    = MESSAGETYPE.K_TRAIN_OPERATION_PACKAGE;
            this.opType    = opType;
            this.trainid   = trainid;
            this.lineid    = lineid;
            this.traintype = traintype;
            this.seatcount = seatcount;
        }         //构造函数 接受发送者,接收者字符串,注册用户名与注册密码
예제 #6
0
        }         //构造函数 字节数组转化为数据包

        public TrainStationOperationPackage(string sender, string IPandPort, string receiver,
                                            Enum_OP opType,
                                            int trainid, int stationid, string arrivetime, string leavetime, int remainseat) : base(sender, IPandPort, receiver)
        {
            MessageType     = MESSAGETYPE.K_TRAINSTATION_OPERATION_PACKAGE;
            this.opType     = opType;
            this.trainid    = trainid;
            this.stationid  = stationid;
            this.arrivetime = arrivetime;
            this.leavetime  = leavetime;
            this.remainseat = remainseat;
        }         //构造函数 接受发送者,接收者字符串,注册用户名与注册密码