C# 클래스 OpenMetaverse.FriendsManager

This class is used to add and remove avatars from your friends list and to manage their permission.
파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FriendList FriendInfo>.InternalDictionary
FriendRequests UUID>.InternalDictionary

공개 메소드들

메소드 설명
AcceptFriendship ( UUID fromAgentID, UUID imSessionID ) : void

Accept a friendship request

DeclineFriendship ( UUID fromAgentID, UUID imSessionID ) : void

Decline a friendship request

GrantRights ( UUID friendID, FriendRights rights ) : void

Change the rights of a friend avatar.

This method will implicitly set the rights to those passed in the rights parameter.

MapFriend ( UUID friendID ) : void

Use to map a friends location on the grid.

E:OnFriendFound

OfferFriendship ( UUID agentID ) : void

Offer friendship to an avatar.

OnFindAgentReplyHandler ( Packet packet, Simulator simulator ) : void

Handle friend location updates

TerminateFriendship ( UUID agentID ) : void

Terminate a friendship with an avatar

TrackFriend ( UUID friendID ) : void

Use to track a friends movement on the grid

비공개 메소드들

메소드 설명
Avatars_OnAvatarNames ( string>.Dictionary names ) : void

This handles the asynchronous response of a RequestAvatarNames call.

ChangeUserRightsHandler ( Packet packet, Simulator simulator ) : void

Handle notifications sent when a friend rights change. This notification is also received when my own rights change.

FriendsManager ( GridClient client ) : System

Internal constructor

MainAvatar_InstantMessage ( InstantMessage im, Simulator simulator ) : void

Handles relevant messages from the server encapsulated in instant messages.

Network_OnConnect ( object sender ) : void

Called when a connection to the SL server is established. The list of friend avatars is populated from XML returned by the login server. That list contains the avatar's id and right, but no names. Here is where those names are requested.

Network_OnLoginResponse ( bool loginSuccess, bool redirect, string message, string reason, LoginResponseData replyData ) : void
OfflineNotificationHandler ( Packet packet, Simulator simulator ) : void

Handle notifications sent when a friends has gone offline.

OnlineNotificationHandler ( Packet packet, Simulator simulator ) : void

Handle notifications sent when a friends has come online.

TerminateFriendshipHandler ( Packet packet, Simulator simulator ) : void

Fired when another friend terminates friendship. We need to remove them from our cached list.

메소드 상세

AcceptFriendship() 공개 메소드

Accept a friendship request
public AcceptFriendship ( UUID fromAgentID, UUID imSessionID ) : void
fromAgentID UUID agentID of avatatar to form friendship with
imSessionID UUID imSessionID of the friendship request message
리턴 void

DeclineFriendship() 공개 메소드

Decline a friendship request
public DeclineFriendship ( UUID fromAgentID, UUID imSessionID ) : void
fromAgentID UUID of friend
imSessionID UUID imSessionID of the friendship request message
리턴 void

GrantRights() 공개 메소드

Change the rights of a friend avatar.
This method will implicitly set the rights to those passed in the rights parameter.
public GrantRights ( UUID friendID, FriendRights rights ) : void
friendID UUID the of the friend
rights FriendRights the new rights to give the friend
리턴 void

MapFriend() 공개 메소드

Use to map a friends location on the grid.
E:OnFriendFound
public MapFriend ( UUID friendID ) : void
friendID UUID Friends UUID to find
리턴 void

OfferFriendship() 공개 메소드

Offer friendship to an avatar.
public OfferFriendship ( UUID agentID ) : void
agentID UUID System ID of the avatar you are offering friendship to
리턴 void

OnFindAgentReplyHandler() 공개 메소드

Handle friend location updates
public OnFindAgentReplyHandler ( Packet packet, Simulator simulator ) : void
packet OpenMetaverse.Packets.Packet The Packet
simulator Simulator The Simulator
리턴 void

TerminateFriendship() 공개 메소드

Terminate a friendship with an avatar
public TerminateFriendship ( UUID agentID ) : void
agentID UUID System ID of the avatar you are terminating the friendship with
리턴 void

TrackFriend() 공개 메소드

Use to track a friends movement on the grid
public TrackFriend ( UUID friendID ) : void
friendID UUID Friends Key
리턴 void

프로퍼티 상세

FriendList 공개적으로 프로퍼티

A dictionary of key/value pairs containing known friends of this avatar. The Key is the UUID of the friend, the value is a FriendInfo object that contains detailed information including permissions you have and have given to the friend
public InternalDictionary FriendList
리턴 FriendInfo>.InternalDictionary

FriendRequests 공개적으로 프로퍼티

A Dictionary of key/value pairs containing current pending frienship offers. The key is the UUID of the avatar making the request, the value is the UUID of the request which is used to accept or decline the friendship offer
public InternalDictionary FriendRequests
리턴 UUID>.InternalDictionary