using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ShadowStudio.Model
{
///
/// 房间权限
///
public enum RoomPermissions
{
///
/// 私人房间,仅个人可看
///
Private = 0,
///
/// 公共可读
///
OnlyRead = 1,
///
/// 公共可写
///
Writable = 2
}
///
/// Room Infos
/// 房间信息,数据结构
///
public class RoomInfo
{
///
/// 房间id
///
private string roomId;
///
/// 房间号
///
private string roomNum;
///
/// 房间名称
///
private string roomName;
///
/// 访问权限
///
private RoomPermissions permissions;
///
/// 房间密码
///
private string password;
///
/// 房间活跃度
///
private string activity;
///
/// 房间拥有者
///
private string ownerId;
///
/// 物品的集合体,因为数据量可能很大,不在此使用完整的结构体引用
///
private List goodsList;
public string RoomId { get => roomId; set => roomId = value; }
public string RoomNum { get => roomNum; set => roomNum = value; }
public string RoomName { get => roomName; set => roomName = value; }
public RoomPermissions Permissions { get => permissions; set => permissions = value; }
public string Password { get => password; set => password = value; }
public string Activity { get => activity; set => activity = value; }
public string OwnerId { get => ownerId; set => ownerId = value; }
public List GoodsList { get => goodsList; set => goodsList = value; }
}
}