示例#1
0
 protected override int getDataRoomStatus(string room)
 {
     dataTemp = getJson(room);
     if (dataTemp == null)
     {
         return((int)LivingStatus.ERROR);
     }
     return((int)(dataTemp.room_info.live_status == 1 ? LivingStatus.ONLINE : LivingStatus.OFFLINE));
 }
示例#2
0
    public override string getOwnerName(string room)
    {
        BilibiliData data = getJson(room);

        if (data == null)
        {
            return("");
        }
        return(data.anchor_info.base_info.uname);
    }