Packagecom.electrotank.electroserver4.message.request
Classpublic class RemoveBuddyRequest
InheritanceRemoveBuddyRequest Inheritance com.electrotank.electroserver4.message.request.RequestImpl

This request allows you to remove a user as a buddy. Please use ElectroServer.removeBuddy instead of using this request directly.


Example
Shows how to remove a buddy.
    //import the needed classes
    import com.electrotank.electroserver4.ElectroServer;
    //
    //Add the buddy
    var es:ElectroServer;//It is assumed that this refers to an ElectroServer class instance that is connected to ElectroServer
    es.removeBuddy("crazy_face");
    

See also

com.electrotank.electroserver4.ElectroServer.addBuddy()
com.electrotank.electroserver4.ElectroServer.removeBuddy()
com.electrotank.electroserver4.message.event.BuddyStatusUpdatedEvent


Public Methods
 MethodDefined by
  
Creates a new instance of the RemoveBuddyRequest class.
RemoveBuddyRequest
  
getBuddyName():String
Gets the name of the buddy to be removed.
RemoveBuddyRequest
  
setBuddyName(name:String):void
Specifies the name of the buddy to remove.
RemoveBuddyRequest
  
RemoveBuddyRequest
Constructor detail
RemoveBuddyRequest()constructor
public function RemoveBuddyRequest()

Creates a new instance of the RemoveBuddyRequest class.

Method detail
getBuddyName()method
public function getBuddyName():String

Gets the name of the buddy to be removed.

Returns
String — The name of the buddy to be removed.
setBuddyName()method 
public function setBuddyName(name:String):void

Specifies the name of the buddy to remove.

Parameters
name:String — The name of the buddy to remove.
validate()method 
public override function validate():ValidationResponse

Returns
ValidationResponse