JML

net.sf.jml.impl
Class MsnOwnerImpl

java.lang.Object
  extended by net.sf.jml.impl.MsnUserImpl
      extended by net.sf.jml.impl.MsnOwnerImpl
All Implemented Interfaces:
MsnOwner, MsnUser

public class MsnOwnerImpl
extends MsnUserImpl
implements MsnOwner

Author:
Roger Chen

Constructor Summary
MsnOwnerImpl(MsnMessenger messenger, Email email, String password)
           
 
Method Summary
 void fSetClientId(MsnClientId clientId)
           
 void fSetDisplayName(String displayName)
           
 void fSetNotifyMeWhenSomeoneAddedMe(boolean b)
           
 void fSetOnlyNotifyAllowList(boolean b)
           
 void fSetStatusF(MsnUserStatus status)
           
 MsnObject getDisplayPicture()
           
 MsnUserStatus getInitStatus()
          Get the init status.
 MsnMessenger getMessenger()
          Get the MsnMessenger the owner belongs to.
 String getPassword()
           
 String getPersonalMessage()
           
 boolean isNotifyMeWhenSomeoneAddedMe()
          See http://www.hypothetic.org/docs/msn/notification/get_details.php "Privacy Settings -- GTC" section.
 boolean isOnlyNotifyAllowList()
          If result is true, the contacts neither on AL or BL will be blocked, otherwise only the contacts on AL will received my notify message.
 boolean isVerified()
          The email have been verified.
 void setClientId(MsnClientId clientId)
          Set client id.
 void setCurrentMedia(String currentMedia)
           
 void setCurrentMedia(String title, String artist, String album, GUID contentId)
           
 void setDisplayName(String displayName)
          Set display name.
 void setDisplayPicture(MsnObject displayPicture)
           
 void setInitDisplayPicture(MsnObject displayPicture)
           
 void setInitPersonalMessage(String personalMessage)
           
 void setInitStatus(MsnUserStatus initStatus)
          Set the init status.
 void setNotifyMeWhenSomeoneAddedMe(boolean b)
          See http://www.hypothetic.org/docs/msn/notification/get_details.php "Privacy Settings -- GTC" section.
 void setOnlyNotifyAllowList(boolean b)
          if set to true, the contacts neither on AL or BL will be blocked.
 void setPersonalMessage(String personalMessage)
           
 void setPersonalMessageAndCurrentMedia(String personalMessage, String currentMedia)
           
 void setPersonalMessageAndCurrentMedia(String personalMessage, String title, String artist, String album, GUID contentId)
           
 void setProperty(MsnUserPropertyType type, String value)
          Set user property.
 void setStatus(MsnUserStatus status)
          Set status.
 void setVerified(boolean verified)
           
 String toString()
           
 
Methods inherited from class net.sf.jml.impl.MsnUserImpl
getClientId, getDisplayName, getEmail, getOldDisplayName, getOldStatus, getProperties, getStatus, getTelephone, setEmail, setTelephone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.jml.MsnUser
getClientId, getDisplayName, getEmail, getOldDisplayName, getOldStatus, getProperties, getStatus
 

Constructor Detail

MsnOwnerImpl

public MsnOwnerImpl(MsnMessenger messenger,
                    Email email,
                    String password)
Method Detail

getMessenger

public MsnMessenger getMessenger()
Description copied from interface: MsnOwner
Get the MsnMessenger the owner belongs to.

Specified by:
getMessenger in interface MsnOwner
Returns:
MsnMessenger

isVerified

public boolean isVerified()
Description copied from interface: MsnOwner
The email have been verified.

Specified by:
isVerified in interface MsnOwner
Returns:
the email have been verified

getInitStatus

public MsnUserStatus getInitStatus()
Description copied from interface: MsnOwner
Get the init status. When login to NS, will use this status to init.

Specified by:
getInitStatus in interface MsnOwner
Returns:
init status

setInitStatus

public void setInitStatus(MsnUserStatus initStatus)
Description copied from interface: MsnOwner
Set the init status.

Specified by:
setInitStatus in interface MsnOwner
Parameters:
initStatus - init status

isOnlyNotifyAllowList

public boolean isOnlyNotifyAllowList()
Description copied from interface: MsnOwner
If result is true, the contacts neither on AL or BL will be blocked, otherwise only the contacts on AL will received my notify message. See http://www.hypothetic.org/docs/msn/notification/get_details.php "Privacy Settings -- BLP" section.

Specified by:
isOnlyNotifyAllowList in interface MsnOwner
Returns:
is only notify AL

isNotifyMeWhenSomeoneAddedMe

public boolean isNotifyMeWhenSomeoneAddedMe()
Description copied from interface: MsnOwner
See http://www.hypothetic.org/docs/msn/notification/get_details.php "Privacy Settings -- GTC" section.

Specified by:
isNotifyMeWhenSomeoneAddedMe in interface MsnOwner
Returns:
is notify me when someone added me

setDisplayName

public void setDisplayName(String displayName)
Description copied from interface: MsnOwner
Set display name.

Specified by:
setDisplayName in interface MsnOwner
Overrides:
setDisplayName in class MsnUserImpl
Parameters:
displayName - display name

setClientId

public void setClientId(MsnClientId clientId)
Description copied from interface: MsnOwner
Set client id.

Specified by:
setClientId in interface MsnOwner
Overrides:
setClientId in class MsnUserImpl
Parameters:
clientId - client id

setStatus

public void setStatus(MsnUserStatus status)
Description copied from interface: MsnOwner
Set status.

Specified by:
setStatus in interface MsnOwner
Overrides:
setStatus in class MsnUserImpl
Parameters:
status - status

setPersonalMessage

public void setPersonalMessage(String personalMessage)
Specified by:
setPersonalMessage in interface MsnOwner

setCurrentMedia

public void setCurrentMedia(String currentMedia)
Specified by:
setCurrentMedia in interface MsnOwner

setCurrentMedia

public void setCurrentMedia(String title,
                            String artist,
                            String album,
                            GUID contentId)
Specified by:
setCurrentMedia in interface MsnOwner

setPersonalMessageAndCurrentMedia

public void setPersonalMessageAndCurrentMedia(String personalMessage,
                                              String currentMedia)

setPersonalMessageAndCurrentMedia

public void setPersonalMessageAndCurrentMedia(String personalMessage,
                                              String title,
                                              String artist,
                                              String album,
                                              GUID contentId)

setDisplayPicture

public void setDisplayPicture(MsnObject displayPicture)
Specified by:
setDisplayPicture in interface MsnOwner

setProperty

public void setProperty(MsnUserPropertyType type,
                        String value)
Description copied from interface: MsnOwner
Set user property. See http://www.hypothetic.org/docs/msn/notification/get_details.php "Phone Numbers" section.

Specified by:
setProperty in interface MsnOwner
Parameters:
type - property type
value - property value

setOnlyNotifyAllowList

public void setOnlyNotifyAllowList(boolean b)
Description copied from interface: MsnOwner
if set to true, the contacts neither on AL or BL will be blocked. See http://www.hypothetic.org/docs/msn/notification/get_details.php "Privacy Settings -- BLP" section.

Specified by:
setOnlyNotifyAllowList in interface MsnOwner
Parameters:
b - is only notify AL

setNotifyMeWhenSomeoneAddedMe

public void setNotifyMeWhenSomeoneAddedMe(boolean b)
Description copied from interface: MsnOwner
See http://www.hypothetic.org/docs/msn/notification/get_details.php "Privacy Settings -- GTC" section.

Specified by:
setNotifyMeWhenSomeoneAddedMe in interface MsnOwner
Parameters:
b - is notify me when someone added me

toString

public String toString()
Overrides:
toString in class Object

setVerified

public void setVerified(boolean verified)

setInitDisplayPicture

public void setInitDisplayPicture(MsnObject displayPicture)
Specified by:
setInitDisplayPicture in interface MsnOwner

setInitPersonalMessage

public void setInitPersonalMessage(String personalMessage)
Specified by:
setInitPersonalMessage in interface MsnOwner

getPassword

public String getPassword()

getDisplayPicture

public MsnObject getDisplayPicture()
Specified by:
getDisplayPicture in interface MsnOwner

getPersonalMessage

public String getPersonalMessage()
Specified by:
getPersonalMessage in interface MsnOwner

fSetDisplayName

public void fSetDisplayName(String displayName)

fSetClientId

public void fSetClientId(MsnClientId clientId)

fSetStatusF

public void fSetStatusF(MsnUserStatus status)

fSetNotifyMeWhenSomeoneAddedMe

public void fSetNotifyMeWhenSomeoneAddedMe(boolean b)

fSetOnlyNotifyAllowList

public void fSetOnlyNotifyAllowList(boolean b)

JML