本文整理汇总了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;
}