TeamShip constructor
TeamShip({})
Implementation
TeamShip({
ObjectId? id,
ObjectId? bsid,
int? time,
DbJsonWraper? extra,
List<ObjectId>? trans,
ObjectId? uid,
ObjectId? sid,
ObjectId? rid,
ObjectId? fid,
int? from,
int? state,
String? apply,
String? alias,
bool? dialog,
bool? notice,
bool? top,
int? unread,
String? recent,
int? update,
int? active,
}) : _id = id ?? ObjectId(),
_bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
_time = time ?? DateTime.now().millisecondsSinceEpoch,
_extra = extra ?? DbJsonWraper(),
_trans = trans ?? [],
uid = uid ?? ObjectId.fromHexString('000000000000000000000000'),
sid = sid ?? ObjectId.fromHexString('000000000000000000000000'),
rid = rid ?? ObjectId.fromHexString('000000000000000000000000'),
fid = fid ?? ObjectId.fromHexString('000000000000000000000000'),
from = from ?? 0,
state = state ?? 0,
apply = apply ?? '',
alias = alias ?? '',
dialog = dialog ?? true,
notice = notice ?? true,
top = top ?? false,
unread = unread ?? 0,
recent = recent ?? '',
update = update ?? DateTime.now().millisecondsSinceEpoch,
active = active ?? DateTime.now().millisecondsSinceEpoch;