5 // Created by J Osborne on 2/25/13.
9 #import "KDCirclePeer.h"
10 #include "SecureObjectSync/SOSCloudCircle.h"
11 #include "SecureObjectSync/SOSPeerInfo.h"
13 @interface KDCirclePeer ()
15 @property (readwrite) NSString *name;
16 @property (readwrite) NSString *idString;
17 @property (readwrite) id peerObject;
21 @implementation KDCirclePeer
23 -(id)initWithPeerObject:(id)peerObject
30 self.peerObject = peerObject;
31 self.name = (__bridge NSString *)(SOSPeerInfoGetPeerName((__bridge SOSPeerInfoRef)peerObject));
32 self.idString = (__bridge NSString *)(SOSPeerInfoGetPeerID((__bridge SOSPeerInfoRef)peerObject));
37 -(NSString*)description
39 return [NSString stringWithFormat:@"[peer n='%@' id='%@' o=%@]", self.name, self.idString, self.peerObject];