ticket.cs
来自「现在需要全国联网销售火车票」· CS 代码 · 共 75 行
CS
75 行
using System;
using System.Collections.Generic;
using System.Text;
namespace MyTicketService.Models
{
public class Ticket
{
private int ticketId;
private string trainNo = String.Empty;
private string fromPlace = String.Empty;
private string toPlace = String.Empty;
private int unitPrice;
private int num;
private int type;
private string startTime = String.Empty;
public Ticket() { }
public int TicketId
{
get { return this.ticketId; }
set { this.ticketId = value; }
}
public string TrainNo
{
get { return this.trainNo; }
set { this.trainNo = value; }
}
public string FromPlace
{
get { return this.fromPlace; }
set { this.fromPlace = value; }
}
public string ToPlace
{
get { return this.toPlace; }
set { this.toPlace = value; }
}
public int UnitPrice
{
get { return this.unitPrice; }
set { this.unitPrice = value; }
}
public int Num
{
get { return this.num; }
set { this.num = value; }
}
public int Type
{
get { return this.type; }
set { this.type = value; }
}
public string StartTime
{
get { return this.startTime; }
set { this.startTime = value; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?