public Battery(BatteryType type, string brand, int?standByHours, int?standByMinutes, int?talkHours, int?talkMinutes) { this.Type = type; this.Brand = brand; this.StandByTime = new BatteryLife(standByHours, standByMinutes); this.TalkTime = new BatteryLife(talkHours, talkMinutes); }
public Battery(BatteryType type, string brand, int? standByHours, int? standByMinutes, int? talkHours, int? talkMinutes) { this.Type = type; this.Brand = brand; this.StandByTime = new BatteryLife(standByHours, standByMinutes); this.TalkTime = new BatteryLife(talkHours, talkMinutes); }