AppWithTokenAndDefaultPriority creates an application with a token and defaultPriority and returns a message builder.
(id uint, token string, defaultPriority int)
| 140 | |
| 141 | // AppWithTokenAndDefaultPriority creates an application with a token and defaultPriority and returns a message builder. |
| 142 | func (ab *AppClientBuilder) AppWithTokenAndDefaultPriority(id uint, token string, defaultPriority int) *MessageBuilder { |
| 143 | application := &model.Application{ID: id, UserID: ab.userID, Token: token, DefaultPriority: defaultPriority} |
| 144 | ab.db.CreateApplication(application) |
| 145 | return &MessageBuilder{db: ab.db, appID: id} |
| 146 | } |
| 147 | |
| 148 | // Client creates a client and returns itself. |
| 149 | func (ab *AppClientBuilder) Client(id uint) *AppClientBuilder { |