ob

package
v0.0.0-...-0a4855c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OFFLINE = iota
	LIVING
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveRoom

type LiveRoom struct {
	LiveStatus int    `json:"liveStatus"`
	Url        string `json:"url"`
	Title      string `json:"title"`
	Cover      string `json:"cover"`
	RoomId     int    `json:"roomid"`
}

type UserInfo

type UserInfo struct {
	Mid      int      `json:"mid"`
	Name     string   `json:"name"`
	Face     string   `json:"face"`
	LiveRoom LiveRoom `json:"live_room"`
}

func NewOb

func NewOb(mid int) (*UserInfo, error)

func (*UserInfo) Fill

func (u *UserInfo) Fill() error

func (*UserInfo) IsLiving

func (u *UserInfo) IsLiving() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL