weartalk

package module
v0.0.0-...-de41b50 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: LGPL-3.0 Imports: 8 Imported by: 0

README

weartalk

Go LICENSE
weilei.weartalk and weilei.phonetalk APP's thrid party SDK.
Warning: Don't use this project to develop any normal projects, it's only to have fun! Let's have fun!

Intorduction

How to Fxxk Weilei's Server (Chinese Simplified)

Who is Wei Lei?

Wei Lei is a Chinese Android Developer(Maybe), he developed some useless and problematic APP, such as WearTalk(腕上聊天室) and PhoneTalk(掌上聊天室). He is a master of Chongqing University, he is so silly and pompous, he attacked many other developers.

What's wrong with WearTalk and PhoneTalk?
  1. API does not follow any industry norms.
  2. Leaking user privacy.
  3. UI is s**t.
  4. Checking password on client and send the true password to client.(Hahaha)
  5. No data security measures.
  6. It runs illegally in China.

Let's have fun!

go get github.com/AkinoMaple/weartalk

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallBackFunc

type CallBackFunc func(*Msg)

type Messages

type Messages struct {
	Time   interface{} `json:"time"`
	Room   Room        `json:"room"`
	Status interface{} `json:"status"`
}

type Msg

type Msg struct {
	UID      string `json:"uid"`
	IP       string `json:"ip"`
	Words    string `json:"words"`
	NickName string `json:"nickname"`
	Time     int64  `json:"time"`
	Avatar   string `json:"touxiangname"`
	RoomID   string `json:"-"`
}

type Room

type Room struct {
	Firstman string      `json:"fristman"`
	Password string      `json:"pwd"`
	Talks    interface{} `json:"talks"`
	RoomID   string      `json:"roomid"`
}

type UserInfo

type UserInfo struct {
	// shit English suki
	Phone   []uint
	Name    []string
	Email   string
	Message int
}

type Version

type Version struct {
	Version string `json:"version"`
	Tips    string `json:"tips"`
	URL     string `json:"url"`
}

type WearTalk

type WearTalk struct {
	UID      string //Ta/TaMP/TaMi + Int
	ID       int    // Int ID
	NickName string
	Sex      int8
	Key      string
	Device   int8
	Avatar   string
	XFF      string
}

func (*WearTalk) GetIsVIP

func (wt *WearTalk) GetIsVIP(uid string) (bool, error)

func (*WearTalk) GetMessages

func (wt *WearTalk) GetMessages(roomid string, timestamp int64) (*Messages, error)

func (*WearTalk) GetVersion

func (wt *WearTalk) GetVersion() (*Version, error)

func (*WearTalk) HandleMsg

func (wt *WearTalk) HandleMsg(roomid string, callback CallBackFunc, arguments ...int64)

func (*WearTalk) MarshalUID

func (wt *WearTalk) MarshalUID()

func (*WearTalk) Send

func (wt *WearTalk) Send(roomid string, message string, arguments ...int64) (map[string]string, error)

Jump to

Keyboard shortcuts

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