NewClientWithToken creates a client with a token and returns the client.
(id uint, token string)
| 158 | |
| 159 | // NewClientWithToken creates a client with a token and returns the client. |
| 160 | func (ab *AppClientBuilder) NewClientWithToken(id uint, token string) *model.Client { |
| 161 | client := &model.Client{ID: id, Token: token, UserID: ab.userID} |
| 162 | ab.db.CreateClient(client) |
| 163 | return client |
| 164 | } |
| 165 | |
| 166 | // Message creates a message and returns itself. |
| 167 | func (mb *MessageBuilder) Message(id uint) *MessageBuilder { |