📄 ticket.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -