public class UserProfile extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<UserProfile> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
UserProfile(Parcel in) |
Modifier and Type | Method and Description |
---|---|
static UserProfile |
createFromResponse(Map userProfileMap)
요청 결과로 부터 UserProfile 객체를 만든다.
|
int |
describeContents() |
long |
getId()
UserManagement API 요청을 시도한 사용자 id
|
String |
getNickname()
사용자 별명
|
String |
getProfileImagePath()
480px * 480px ~ 1024px * 1024px 크기의 사용자의 프로필 이미지 경로
|
Map<String,String> |
getProperties()
현재까지 저장되어 있는 사용자의 모든 정보를 key, value로 구성된 json type으로 반환
|
String |
getProperty(String propertyKey)
앱 등록 당시 정의한 사용자의 정보 중 key에 해당하는 정보
|
String |
getThumbnailImagePath()
110px * 110px(톡에서 가지고 온 경우) 또는 160px * 160px(스토리에서 가지고 온 경우) 크기의 사용자의 썸네일 프로필 이미지 경로
|
static UserProfile |
loadFromCache()
캐시로 부터 사용자정보를 읽어온다.
|
void |
saveUserToCache()
사용자 객체를 캐시에 저장한다.
|
String |
toString()
사용자의 프로필 정보를 String으로 변환한다
|
static UserProfile |
updateUserProfile(UserProfile originUserProfile,
Map<String,String> properties)
원본 사용자정보와 update할 사용자 정보를 받아 원본에 update할 정보만 update한 결과를 준다.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<UserProfile> CREATOR
public UserProfile(Parcel in)
public static UserProfile createFromResponse(Map userProfileMap)
userProfileMap
- 사용자정보 요청결과 json으로 부터 얻은 Mappublic int describeContents()
describeContents
in interface Parcelable
public long getId()
public String getNickname()
public String getProfileImagePath()
public Map<String,String> getProperties()
public String getProperty(String propertyKey)
propertyKey
- 알고 싶은 사용자 정보의 keypublic String getThumbnailImagePath()
public static UserProfile loadFromCache()
public void saveUserToCache()
public String toString()
public static UserProfile updateUserProfile(UserProfile originUserProfile, Map<String,String> properties)
originUserProfile
- 원본 사용자정보 객체properties
- update할 사용자 정보public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2015 Kakao Corp. All rights reserved.