NewInternalAppWithToken creates an internal application with a token and returns the app.
(id uint, token string)
| 98 | |
| 99 | // NewInternalAppWithToken creates an internal application with a token and returns the app. |
| 100 | func (ab *AppClientBuilder) NewInternalAppWithToken(id uint, token string) *model.Application { |
| 101 | return ab.newAppWithToken(id, token, true) |
| 102 | } |
| 103 | |
| 104 | func (ab *AppClientBuilder) newAppWithToken(id uint, token string, internal bool) *model.Application { |
| 105 | application := &model.Application{ID: id, UserID: ab.userID, Token: token, Internal: internal} |