public override string getOwnerName(string room) { KingkongData data = getJson(room); if (data == null) { return(""); } foreach (KingkongUser user in data.users) { if (user.room_id == room) { return(user.nickname); } } return(""); }
protected override int getDataRoomStatus(string room) { KingkongData dataTemp = getJson(room); if (dataTemp == null) { return((int)LivingStatus.ERROR); } foreach (KingkongUser user in dataTemp.users) { if (user.room_id == room) { userTemp = user; return(user.live_status); } } return((int)LivingStatus.ERROR); }