com.sola.instagram.model
Class Relationship

java.lang.Object
  extended by com.sola.instagram.model.InstagramModel
      extended by com.sola.instagram.model.Relationship

public class Relationship
extends InstagramModel


Nested Class Summary
static class Relationship.Action
           
static class Relationship.IncomingStatus
           
static class Relationship.OutgoingStatus
           
 
Constructor Summary
Relationship(JSONObject obj, java.lang.String accessToken)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks if two relationship objects are equal.
 Relationship.IncomingStatus getIncomingStatus()
           
 Relationship.OutgoingStatus getOutgoingStatus()
           
 boolean targetUserIsPrivate()
           
 
Methods inherited from class com.sola.instagram.model.InstagramModel
toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship(JSONObject obj,
                    java.lang.String accessToken)
             throws JSONException
Throws:
JSONException
Method Detail

getOutgoingStatus

public Relationship.OutgoingStatus getOutgoingStatus()

getIncomingStatus

public Relationship.IncomingStatus getIncomingStatus()

targetUserIsPrivate

public boolean targetUserIsPrivate()

equals

public boolean equals(java.lang.Object o)
Checks if two relationship objects are equal. Relationships are equal if their incoming and outgoing statuses are the same.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to be compared
Returns:
True of the two objects are equal, false otherwise