The IBuddyServiceListener interface is for receiving responses to requests, which are initiated from BuddyService. All the member methods defined in BuddyService operate asynchronously. To receive the result of member methods, a class which implements IBuddyServiceListener must be specified.
Public Member Functions | |
virtual void | OnBuddiesInCategoryReceivedN (RequestId reqId, Osp::Base::Collection::IList *pBuddyList, int pageNo, int countPerPage, int totalPageCount, int totalCount, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddiesReceivedN (RequestId reqId, Osp::Base::Collection::IList *pBuddyList, int pageNo, int countPerPage, int totalPageCount, int totalCount, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyAddedToCategory (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyAttributeUpdated (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyCategoriesReceivedN (RequestId reqId, Osp::Base::Collection::IList *pCategoryList, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyCategoryCreated (RequestId reqId, BuddyCategory *pBuddyCategory, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyCategoryDeleted (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyCategoryUpdated (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyDeleted (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyRemovedFromCategory (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyRequestSent (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnBuddyResponseSent (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnReceivedBuddyRequestsReceivedN (RequestId reqId, Osp::Base::Collection::IList *pRequestList, int pageNo, int countPerPage, int totalPageCount, int totalCount, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnReceivedBuddyResponsesDeleted (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnReceivedBuddyResponsesReceivedN (RequestId reqId, Osp::Base::Collection::IList *pResponseList, int pageNo, int countPerPage, int totalPageCount, int totalCount, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnSentBuddyRequestCanceled (RequestId reqId, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void | OnSentBuddyRequestsReceivedN (RequestId reqId, Osp::Base::Collection::IList *pRequestList, int pageNo, int countPerPage, int totalPageCount, int totalCount, result r, const Osp::Base::String &errorCode, const Osp::Base::String &errorMsg)=0 |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddiesInCategoryReceivedN | ( | RequestId | reqId, |
Osp::Base::Collection::IList * | pBuddyList, | ||
int | pageNo, | ||
int | countPerPage, | ||
int | totalPageCount, | ||
int | totalCount, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::GetAllBuddiesInCategory() is received. The buddies are sorted in the ascending order of the buddy name.
[in] | reqId | The ID of the request |
[in] | pBuddyList | The list of buddies who belong to the category, else null if an error occurs An item of this list is an instance of Osp::Social::Services::Buddy. |
[in] | pageNo | The page number of the resulting list |
[in] | countPerPage | The maximum count of the result items on a page |
[in] | totalPageCount | The resulting count of pages from this search |
[in] | totalCount | The number of results generated by this search |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddiesReceivedN | ( | RequestId | reqId, |
Osp::Base::Collection::IList * | pBuddyList, | ||
int | pageNo, | ||
int | countPerPage, | ||
int | totalPageCount, | ||
int | totalCount, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::GetAllBuddies() or BuddyService::GetBuddiesUsingApp() is received. The buddies are sorted in the ascending order of the buddy name.
[in] | reqId | The ID of the request |
[in] | pBuddyList | The list of buddies, else null if an error occurs An item of this list is an instance of Osp::Social::Services::Buddy. |
[in] | pageNo | The page number of the resulting list |
[in] | countPerPage | The maximum count of the result items on a page |
[in] | totalPageCount | The resulting count of pages from this search |
[in] | totalCount | The number of results generated by this search |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyAddedToCategory | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::AddBuddyToCategory() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyAttributeUpdated | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::UpdateBuddyAttribute() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyCategoriesReceivedN | ( | RequestId | reqId, |
Osp::Base::Collection::IList * | pCategoryList, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::GetAllCategories() is received. The categories are sorted in the ascending order of the category name.
[in] | reqId | The ID of the request |
[in] | pCategoryList | The list of categories, else null if an error occurs An item of this list is an instance of Osp::Social::Services::BuddyCategory. |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyCategoryCreated | ( | RequestId | reqId, |
BuddyCategory * | pBuddyCategory, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::CreateCategory() is received.
[in] | reqId | The ID of the request |
[in] | pBuddyCategory | The created BuddyCategory, else null if an error occurs |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyCategoryDeleted | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::DeleteCategory() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyCategoryUpdated | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::UpdateCategory() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyDeleted | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::DeleteBuddy() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyRemovedFromCategory | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::RemoveBuddyFromCategory() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyRequestSent | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::RequestBuddy() or BuddyService::RequestBuddyByLoginId() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnBuddyResponseSent | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::RespondToBuddyRequest() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnReceivedBuddyRequestsReceivedN | ( | RequestId | reqId, |
Osp::Base::Collection::IList * | pRequestList, | ||
int | pageNo, | ||
int | countPerPage, | ||
int | totalPageCount, | ||
int | totalCount, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::GetReceivedBuddyRequests() is received. The received buddy requests are sorted in ascending order of the requested date.
[in] | reqId | The ID of the request |
[in] | pRequestList | The list of the received request, else null if an error occurs An item of this list is an instance of Osp::Social::Services::ReceivedBuddyRequest. |
[in] | pageNo | The page number of the resulting list |
[in] | countPerPage | The maximum count of the result items on a page |
[in] | totalPageCount | The resulting count of pages from this search |
[in] | totalCount | The number of results generated by this search |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnReceivedBuddyResponsesDeleted | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::DeleteReceivedResponses() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnReceivedBuddyResponsesReceivedN | ( | RequestId | reqId, |
Osp::Base::Collection::IList * | pResponseList, | ||
int | pageNo, | ||
int | countPerPage, | ||
int | totalPageCount, | ||
int | totalCount, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::GetReceivedResponses() is received. The buddy responses are sorted in the ascending order of the requested date.
[in] | reqId | The ID of the request |
[in] | pResponseList | The list of the received responses, else null if an error occurs An item of this list is an instance of Osp::Social::Services::BuddyResponse. |
[in] | pageNo | The page number of the resulting list |
[in] | countPerPage | The maximum count of the result items on a page |
[in] | totalPageCount | The resulting count of pages from this search |
[in] | totalCount | The number of results generated by this search |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnSentBuddyRequestCanceled | ( | RequestId | reqId, |
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::CancelSentBuddyRequest() is received.
[in] | reqId | The ID of the request |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |
virtual void Osp::Social::Services::IBuddyServiceListener::OnSentBuddyRequestsReceivedN | ( | RequestId | reqId, |
Osp::Base::Collection::IList * | pRequestList, | ||
int | pageNo, | ||
int | countPerPage, | ||
int | totalPageCount, | ||
int | totalCount, | ||
result | r, | ||
const Osp::Base::String & | errorCode, | ||
const Osp::Base::String & | errorMsg | ||
) | [pure virtual] |
Called to notify when the response to BuddyService::GetSentBuddyRequests() is received.
The sent buddy requests are sorted in ascending order of the requested date.
[in] | reqId | The ID of the request |
[in] | pRequestList | The list of the sent requests, else null if an error occurs An item of this list is an instance of Osp::Social::Services::SentBuddyRequest. |
[in] | pageNo | The page number of the resulting list |
[in] | countPerPage | The maximum count of the result items on a page |
[in] | totalPageCount | The resulting count of pages from this search |
[in] | totalCount | The number of results generated by this search |
[in] | r | The result of the request |
[in] | errorCode | The error code from the server |
[in] | errorMsg | The error message from the server |
E_SUCCESS | The request is successful. |
E_SERVER | An error has occurred on the server side. Please check the errorCode and errorMsg . |
E_OUT_OF_MEMORY | The memory is insufficient. |
E_CONNECTION_FAILED | The network connection has failed. |
E_PARSING_FAILED | The response data from the server cannot be parsed. |