Search in sources :

Example 1 with OAuth2MobileId

use of org.thingsboard.server.common.data.id.OAuth2MobileId in project thingsboard by thingsboard.

the class OAuth2MobileEntity method toData.

@Override
public OAuth2Mobile toData() {
    OAuth2Mobile mobile = new OAuth2Mobile();
    mobile.setId(new OAuth2MobileId(id));
    mobile.setCreatedTime(createdTime);
    mobile.setOauth2ParamsId(new OAuth2ParamsId(oauth2ParamsId));
    mobile.setPkgName(pkgName);
    mobile.setAppSecret(appSecret);
    return mobile;
}
Also used : OAuth2ParamsId(org.thingsboard.server.common.data.id.OAuth2ParamsId) OAuth2MobileId(org.thingsboard.server.common.data.id.OAuth2MobileId) OAuth2Mobile(org.thingsboard.server.common.data.oauth2.OAuth2Mobile)

Aggregations

OAuth2MobileId (org.thingsboard.server.common.data.id.OAuth2MobileId)1 OAuth2ParamsId (org.thingsboard.server.common.data.id.OAuth2ParamsId)1 OAuth2Mobile (org.thingsboard.server.common.data.oauth2.OAuth2Mobile)1