Revision: 70187
Updated Code
at December 9, 2015 07:52 by TenDegrees
Updated Code
Entity *userEntity = [[Entity alloc]init];
userEntity.entityId=self.currentUser.entityId;
Invite *invite = [[Invite alloc]init];
invite.sourceEntityId=userEntity.entityId;
invite.destinationEntityId=thePersonYouWantToInvite.entityId;
invite.message=@"Please add me as a contact!";
[self createUnityObject:invite withCompletionBlock:^(id object, bool succcess, NSString *errorMessage)
{
if(success)
{
// show success message
}
else
{
NSLog("%@",errorMessage);
}
}];
Revision: 70186
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 9, 2015 07:50 by TenDegrees
Initial Code
Entity *userEntity = [[Entity alloc]init];
userEntity.entityId=self.currentUser.entityId;
Invite *invite = [[Invite alloc]init];
invite.sourceEntityId=userEntity.entityId;
invite.destinationEntityId=thePersonYouWantToInvite.entityId;
invite.message=@"Please add me as a contact!";
[self createUnityObject:invite withCompletionBlock:^(id object, bool succcess, NSString *errorMessage)
{
if(success)
{
// show success message
}
else
{
NSLog(%@",errorMessage);
}
}];
Initial URL
Initial Description
This shows the basic process for sending an invite to a contact found through search or otherwise.
Initial Title
Sending an Invite in Unity
Initial Tags
Initial Language
Objective C