NewInternalAppWithTokenAndName creates an internal application with a token and name and returns the app.
(id uint, token, name string)
| 129 | |
| 130 | // NewInternalAppWithTokenAndName creates an internal application with a token and name and returns the app. |
| 131 | func (ab *AppClientBuilder) NewInternalAppWithTokenAndName(id uint, token, name string) *model.Application { |
| 132 | return ab.newAppWithTokenAndName(id, token, name, true) |
| 133 | } |
| 134 | |
| 135 | func (ab *AppClientBuilder) newAppWithTokenAndName(id uint, token, name string, internal bool) *model.Application { |
| 136 | application := &model.Application{ID: id, UserID: ab.userID, Token: token, Name: name, Internal: internal} |