LJGroup



Abstract

Represents a friend group.

Methods

addFriend:

Abstract: Add a friend to the receiver.
- (void)addFriend:(LJFriend *)amigo; 


createdDate

Abstract: Returns the date the receiver was created.
- (NSDate *)createdDate; 

This method returns the date the receiver was created; this is not necessarily the date the group it represents was created. If the group was created externally, this will be the date that the LJKit first learned of its existence. Because of this, this method is somewhat unreliable. For instance, if the user deletes a group, then creates a new one with the same number, then logs in with the LJKit, it will appear to be the same group. For this reason it is advised that users not manipulate groups outside of the LJKit.


isMember:

Abstract: Determine membership of a friend.
- (BOOL)isMember:(LJFriend *)amigo; 

If the receiver belongs to a different account than amigo, the result is undefined.

Result: YES if amigo is a member of this group; NO otherwise.

isPublic

Abstract: Determine whether the receiver is visible to other users.
- (BOOL)isPublic; 


mask

Abstract: Obtain the group's bit mask.
- (unsigned int)mask; 


memberArray

Abstract: Returns the members of the receiver as a sorted array.
- (NSArray *)memberArray; 

Result: An NSArray of LJFriend objects.

memberSet

Abstract: Returns the members of the receiver as a set.
- (NSSet *)memberSet; 

Result: An NSSet of LJFriend objects.

membersEntriesHttpURL

Abstract: Returns the URL of the receiver's members' entries.
- (NSURL *)membersEntriesHttpURL; 

LiveJournal allows the friends view to be filtered by group. This method returns an URL of the friends view showing entries only by members of this group.


modifiedDate

Abstract: Returns the date the receiver was modified.
- (NSDate *)modifiedDate; 

This method returns the date the receiver was changed in some way. It is used to determine which groups have changes that need to be synchronized with the server.


name

Abstract: Obtain the name of the receiver.
- (NSString *)name; 


nonMemberArray

Abstract: Returns the non-members of the receiver.
- (NSArray *)nonMemberArray; 

This method returns users who are friends of the parent account but are not members of this group.

Result: A sorted NSArray of LJFriend objects.

nonMemberSet

Abstract: Returns the non-members of the receiver.
- (NSSet *)nonMemberSet; 

This method returns users who are friends of the parent account but are not members of this group.

Result: An NSSet of LJFriend objects.

number

Abstract: Obtain the group's number.
- (unsigned int)number; 


removeFriend:

Abstract: Remove a friend from the receiver.
- (void)removeFriend:(LJFriend *)amigo; 


setName:

Abstract: Sets the name of the receiver.
- (void)setName:(NSString *)name; 


setPublic:

Abstract: Sets whether the receiver is visible to other users.
- (void)setPublic:(BOOL)flag; 


setSortOrder:

Abstract: Sets the sort order index of the receiver.
- (void)setSortOrder:(unsigned char)sortOrder; 


sortOrder

Abstract: Obtain the sort order index of the receiver.
- (unsigned char)sortOrder; 


(Last Updated 2/17/2003)