public class GeolocationEvent
extends java.util.EventObject
Constructor and Description |
---|
GeolocationEvent(Contact sourceContact,
ProtocolProviderService sourceProvider,
java.util.Map<java.lang.String,java.lang.String> newLocation,
OperationSetGeolocation geolocationOpSet)
Creates an event instance indicating that the specified source contact
has changed its geographic location to newLocation.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getNewLocation()
Returns the Geolocation of the contact after this event took place.
|
Contact |
getSourceContact()
Returns the source contact associated with the event.
|
OperationSetGeolocation |
getSourceGeolocationOperationSet()
Returns the GeolocationOperationSet instance that is the source
of this event.
|
ProtocolProviderService |
getSourceProvider()
Returns the provider that the source contact belongs to.
|
java.lang.String |
toString()
Returns a String representation of this GeolocationContactChangeEvent
|
public GeolocationEvent(Contact sourceContact, ProtocolProviderService sourceProvider, java.util.Map<java.lang.String,java.lang.String> newLocation, OperationSetGeolocation geolocationOpSet)
sourceContact
- the contact associated with this event.sourceProvider
- the protocol provider that the contact belongs to.newLocation
- the geolocation where the sourceCountact currently is.geolocationOpSet
- the operation set that generated this eventpublic ProtocolProviderService getSourceProvider()
public Contact getSourceContact()
public java.util.Map<java.lang.String,java.lang.String> getNewLocation()
public OperationSetGeolocation getSourceGeolocationOperationSet()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.