public class FriendInfo extends AppFriendInfo implements com.kakao.auth.common.MessageSendable, User
FriendsService.requestFriends(ApiResponseCallback, FriendContext)
를
이용하여 얻을 수 있음.Modifier and Type | Class and Description |
---|---|
static class |
FriendInfo.FriendRelation |
static class |
FriendInfo.NotAvailableOperationException |
Modifier and Type | Field and Description |
---|---|
static com.kakao.network.response.JSONObjectConverter<FriendInfo> |
CONVERTER |
static android.os.Parcelable.Creator<FriendInfo> |
CREATOR |
Constructor and Description |
---|
FriendInfo(org.json.JSONObject body) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object obj) |
FriendInfo.FriendRelation |
getRelation() |
long |
getServiceUserId()
친구의 카카오 회원번호.
|
String |
getTalkOs()
톡에 가입된 기기의 os 정보 (android/ios)
|
String |
getTargetId()
메세지를 전송할 대상에 대한 ID.
|
String |
getType() |
String |
getUUID()
해당 앱에서 유일한 친구의 code
가변적인 데이터.
|
boolean |
isAllowedMsg()
메세지 수신이 허용되었는지 여부.
|
boolean |
isAppRegistered()
친구의 앱 가입 여부
|
boolean |
isStoryFriend()
친구와 내가 스토리 친구인지 여부.
|
boolean |
isTalkFriend()
친구와 내가 카카오톡 친구인지 여부.
|
String |
toString() |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
getId, getProfileNickname, getProfileThumbnailImage, isFavorite
public static final com.kakao.network.response.JSONObjectConverter<FriendInfo> CONVERTER
public static final android.os.Parcelable.Creator<FriendInfo> CREATOR
public FriendInfo(org.json.JSONObject body) throws com.kakao.network.response.ResponseBody.ResponseBodyException
body
- 응답 결과ResponseBody.ResponseBodyException
- 프로토콜과 맞지 않는 응답이 왔을때 던지는 에러public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AppFriendInfo
public boolean equals(Object obj)
equals
in class AppFriendInfo
obj
- Object to be comparedpublic FriendInfo.FriendRelation getRelation()
public long getServiceUserId()
getServiceUserId
in interface User
public String getTalkOs()
public String getTargetId()
getTargetId
in interface com.kakao.auth.common.MessageSendable
public String getType()
getType
in interface com.kakao.auth.common.MessageSendable
public String getUUID()
getUUID
in interface User
getUUID
in class AppFriendInfo
public boolean isAllowedMsg()
isAllowedMsg
in interface com.kakao.auth.common.MessageSendable
public boolean isAppRegistered()
public boolean isStoryFriend() throws FriendInfo.NotAvailableOperationException
FriendInfo.NotAvailableOperationException
- KakaoStory 친구를 요청하지 않았는데 호출된 경우.public boolean isTalkFriend() throws FriendInfo.NotAvailableOperationException
FriendInfo.NotAvailableOperationException
- KakaoTalk 친구를 요청하지 않았는데 호출된 경우.public String toString()
toString
in class AppFriendInfo
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AppFriendInfo