#NEWLINE# def Equals( self , x ) : #NEWLINE# #INDENT# if ( x is self ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# if ( self . has_is_available_ != x . has_is_available_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_is_available_ and ( self . is_available_ != x . is_available_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_presence_ != x . has_presence_ ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( self . has_presence_ and ( self . presence_ != x . presence_ ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# return 1