HIVE SDK for C++

Classes | Typedefs | Enumerations | Functions
SocialHive

@addgroup SocialHive More...

Classes

class  SocialHive
 HIVE users can view and modify their profile information and provide a social game service where they can make friends and play games with their friends together. More...
 
class  ProfileHive
 HIVE user profile information
More...
 
class  MessageContent
 Message information. More...
 
class  SocialBadge
 HIVE Social Badge information. More...
 

Typedefs

typedef std::function< void(ResultAPI const &result, std::vector< ProfileHive > const &profileList)> SocialHive::onProfileHive
 Returns HIVE Profile / Friend Information. More...
 
typedef std::function< void(ResultAPI const &result)> SocialHive::onSendMessageHive
 Returns HIVE message transmission result. More...
 
typedef std::function< void(ResultAPI const &result)> SocialHive::onShowHiveDialog
 Returns showing HIVE Social dialog result. More...
 
typedef std::function< void(ResultAPI result, SocialBadge socialBadge)> SocialHive::onGetBadgeInfo
 HIVE Social Badge information. More...
 

Enumerations

enum class  FriendType { FriendType::IN_GAME , FriendType::OUT_GAME , FriendType::INVITED , FriendType::ALL_GAME }
 Types of Friend list. More...
 
enum class  HiveDialogType {
  HiveDialogType::HOME , HiveDialogType::GAME , HiveDialogType::USER , HiveDialogType::INQUIRY ,
  HiveDialogType::MESSAGE , HiveDialogType::CHATBOT , HiveDialogType::MYINQUIRY
}
 Types of HIVE Social WebView Dialog. More...
 
enum class  HiveRelationRoute {
  HiveRelationRoute::DEFAULT , HiveRelationRoute::HIVE , HiveRelationRoute::FACEBOOK , HiveRelationRoute::GAME ,
  HiveRelationRoute::CONTACT
}
 HIVE The path form of friendship. More...
 

Functions

static void SocialHive::getMyProfile (onProfileHive listener)
 Request profile information of HIVE certified users. More...
 
static void SocialHive::setMyProfile (std::string displayName, onProfileHive listener)
 Set profile information of HIVE certified users. More...
 
static void SocialHive::getFriends (FriendType friendType, onProfileHive listener)
 Request HIVE Profile / Friend Information In the form of friends, there are friends who play games together, friends who do not play games, friends who invite games, all friends, and these are defined by an enum called FriendType. More...
 
static void SocialHive::getProfiles (std::vector< std::string > vidList, onProfileHive listener)
 HIVE 사용자 정보를 조회한다. More...
 
static void SocialHive::sendMessage (MessageContent messageContent, onSendMessageHive listener)
 Send message to HIVE friend
If you send a message to a HIVE friend, a push notification will be sent to the recipient who has received the message. More...
 
static void SocialHive::sendInvitationMessage (MessageContent messageContent, onSendMessageHive listener)
 Send a invite message to HIVE user. More...
 
static void SocialHive::showHiveDialog (HiveDialogType hiveDialogType, std::string vid, onShowHiveDialog listener)
 Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}
More...
 
static void SocialHive::showHiveDialog (HiveDialogType hiveDialogType, std::string vid, std::string additionalInfo, onShowHiveDialog listener)
 Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}
More...
 
static void SocialHive::getBadgeInfo (onGetBadgeInfo listener)
 Request HIVE Social Badge info. More...
 

Detailed Description

@addgroup SocialHive

Typedef Documentation

◆ onGetBadgeInfo

typedef std::function<void(ResultAPI result, SocialBadge socialBadge)> SocialHive::onGetBadgeInfo

HIVE Social Badge information.

Parameters
resultAPI call result
badgeHIVE-Social Badge information

◆ onProfileHive

typedef std::function<void(ResultAPI const & result, std::vector<ProfileHive> const & profileList)> SocialHive::onProfileHive

Returns HIVE Profile / Friend Information.

Parameters
resultAPI call result
profileListHIVE user's profile list.

(If you ask for your profile, one result is returned, and if you ask for friends list, a list of friends is returned.)

◆ onSendMessageHive

typedef std::function<void(ResultAPI const & result)> SocialHive::onSendMessageHive

Returns HIVE message transmission result.

Parameters
resultAPI call result

◆ onShowHiveDialog

typedef std::function<void(ResultAPI const & result)> SocialHive::onShowHiveDialog

Returns showing HIVE Social dialog result.

Parameters
resultAPI call result

Enumeration Type Documentation

◆ FriendType

enum class FriendType
strong

Types of Friend list.

Enumerator
IN_GAME 

If you are playing a game and they are friends on HIVE.

OUT_GAME 

If you are not playing games, but they are friends on HIVE.

INVITED 

Friends invited by HIVE Social.

ALL_GAME 

All friends on HIVE.

◆ HiveDialogType

enum class HiveDialogType
strong

Types of HIVE Social WebView Dialog.

Enumerator
HOME 

HIVE Social home.

GAME 

HIVE Social game list.

USER 

HIVE Social user profile.

INQUIRY 

HIVE 1:1 Inquiry.

MESSAGE 

HIVE Note. Only for HIVE user.

CHATBOT 

HIVE Chatbot 1:1 Inquiry.

MYINQUIRY 

HIVE My Inquiry.

◆ HiveRelationRoute

enum class HiveRelationRoute
strong

HIVE The path form of friendship.

Enumerator
DEFAULT 

not set

HIVE 

Through HIVE Social.

FACEBOOK 

Through Facebook.

GAME 

Through Game.

CONTACT 

Through Contacts.

Function Documentation

◆ getBadgeInfo()

static void SocialHive::getBadgeInfo ( onGetBadgeInfo  listener)
static

Request HIVE Social Badge info.

Parameters
listenerSocialBadgeListener HIVE SocialBadge info result listener

◆ getFriends()

static void SocialHive::getFriends ( FriendType  friendType,
onProfileHive  listener 
)
static

Request HIVE Profile / Friend Information In the form of friends, there are friends who play games together, friends who do not play games, friends who invite games, all friends, and these are defined by an enum called FriendType.

Parameters
friendTypeTypes of Friend list
listenerAPI call result listener

◆ getMyProfile()

static void SocialHive::getMyProfile ( onProfileHive  listener)
static

Request profile information of HIVE certified users.

Parameters
listenerAPI call result listener

◆ getProfiles()

static void SocialHive::getProfiles ( std::vector< std::string >  vidList,
onProfileHive  listener 
)
static

HIVE 사용자 정보를 조회한다.

Parameters
vidList조회하고자 하는 사용자의 VID 목록
listenerAPI 결과 통지

◆ sendInvitationMessage()

static void SocialHive::sendInvitationMessage ( MessageContent  messageContent,
onSendMessageHive  listener 
)
static

Send a invite message to HIVE user.

Parameters
messageContentInformation to send HIVE invite message
listenerAPI call result listener

◆ sendMessage()

static void SocialHive::sendMessage ( MessageContent  messageContent,
onSendMessageHive  listener 
)
static

Send message to HIVE friend
If you send a message to a HIVE friend, a push notification will be sent to the recipient who has received the message.


The medium to which the push notification is sent is the same game as the game that the sender is using, or a game that has been used recently.
When the recipient receives the push notification and touches the message, the game is executed, so the UI that leads to the HIVE message should be included in the game.

Parameters
messageContentInformation to send HIVE message
listenerAPI call result listener

◆ setMyProfile()

static void SocialHive::setMyProfile ( std::string  displayName,
onProfileHive  listener 
)
static

Set profile information of HIVE certified users.

Parameters
displayNameMessage of user's status
listenerAPI call result listener

◆ showHiveDialog() [1/2]

static void SocialHive::showHiveDialog ( HiveDialogType  hiveDialogType,
std::string  vid,
onShowHiveDialog  listener 
)
static

Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}

  • Profile page{@inheritDoc HiveDialogType::USER}
  • Games{@inheritDoc HiveDialogType::GAME}
  • 1:1 Contact us {@inheritDoc HiveDialogType::INQUIRY})
  • HIVE Note. {@inheritDoc HiveDialogType::MESSAGE}
  • Chatbot 1:1 inquiry{@inheritDoc HiveDialogType::CHATBOT})
Parameters
hiveDialogTypeHiveDialogType Type of HIVE WebView Dialog
vidIf you go directly to your friend's profile page, set your friend's vid
listenerAPI call result listener

◆ showHiveDialog() [2/2]

static void SocialHive::showHiveDialog ( HiveDialogType  hiveDialogType,
std::string  vid,
std::string  additionalInfo,
onShowHiveDialog  listener 
)
static

Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}

  • Profile page{@inheritDoc HiveDialogType::USER}
  • Games{@inheritDoc HiveDialogType::GAME}
  • 1:1 Contact us {@inheritDoc HiveDialogType::INQUIRY})
  • HIVE Note. {@inheritDoc HiveDialogType::MESSAGE}
Parameters
hiveDialogTypeHiveDialogType Type of HIVE WebView Dialog
vidIf you go directly to your friend's profile page, set your friend's vid
additionalInfoPromised String data (JSON format) when you want to open chatbot page directly
handlerAPI call result handler
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy