#NEWLINE# def write( self , oprot ) : #NEWLINE# #INDENT# if ( ( oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated ) and ( self . thrift_spec is not None ) and ( fastbinary is not None ) ) : #NEWLINE# #INDENT# oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) #NEWLINE# return #NEWLINE# #UNINDENT# oprot . writeStructBegin ( 'Room' ) #NEWLINE# if ( self . mid is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'mid' , TType . STRING , 1 ) #NEWLINE# oprot . writeString ( self . mid ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . createdTime is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'createdTime' , TType . I64 , 2 ) #NEWLINE# oprot . writeI64 ( self . createdTime ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . contacts is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'contacts' , TType . LIST , 10 ) #NEWLINE# oprot . writeListBegin ( TType . STRUCT , len ( self . contacts ) ) #NEWLINE# for iter38 in iter38 . contacts : #NEWLINE# #INDENT# iter38 . write ( oprot ) #NEWLINE# #UNINDENT# oprot . writeListEnd ( ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . notificationDisabled is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'notificationDisabled' , TType . BOOL , 31 ) #NEWLINE# oprot . writeBool ( self . notificationDisabled ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# oprot . writeFieldStop ( ) #NEWLINE# oprot . writeStructEnd ( )