本文整理匯總了Java中com.wrapper.spotify.models.User類的典型用法代碼示例。如果您正苦於以下問題:Java User類的具體用法?Java User怎麽用?Java User使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
User類屬於com.wrapper.spotify.models包,在下文中一共展示了User類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isValidPlaylistTrack
import com.wrapper.spotify.models.User; //導入依賴的package包/類
/**
* determine if a given song is part of a user's playlist
* @param song a given played song
* @param user the user that played the song
* @return if the song is played from one of the user's playlists
*/
public Boolean isValidPlaylistTrack(CurrentlyPlayingTrack song, User user) {
if (song.getContext() == null) {
return false;
}
else {
return song.getContext().getUri().contains(user.getId());
}
}
示例2: getUser
import com.wrapper.spotify.models.User; //導入依賴的package包/類
public User getUser() {
return user;
}
示例3: getAddedBy
import com.wrapper.spotify.models.User; //導入依賴的package包/類
public User getAddedBy() {
return addedBy;
}
示例4: setAddedBy
import com.wrapper.spotify.models.User; //導入依賴的package包/類
public void setAddedBy(User addedBy) {
this.addedBy = addedBy;
}