<s> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> from copy import copy <EOL> from . server_message import ServerMessage <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class AddedBeforeMessage ( ServerMessage ) : <EOL> def __init__ ( self , collection , id , before , fields = None ) : <EOL> super ( AddedBeforeMessage , self ) . __init__ ( ) <EOL> self . _collection = collection <EOL> self . _id = id <EOL> self . _before = before <EOL> self . _fields = copy ( fields ) <EOL> def __eq__ ( self , other ) : <EOL> if isinstance ( other , AddedBeforeMessage ) : <EOL> return ( self . _collection == other . _collection <EOL> and self . _id == other . _id <EOL> and self . _before == other . before <EOL> and self . _fields == other . _fields ) <EOL> return super ( AddedBeforeMessage , self ) . __eq__ ( other ) <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' . format ( <EOL> self . _collection , <EOL> self . _id , <EOL> self . _before , <EOL> self . _fields ) <EOL> @ property <EOL> def collection ( self ) : <EOL> return self . _collection <EOL> @ property <EOL> def id ( self ) : <EOL> return self . _id <EOL> @ property <EOL> def before ( self ) : <EOL> return self . _before <EOL> @ property <EOL> def fields ( self ) : <EOL> return copy ( self . _fields ) <EOL> def has_fields ( self ) : <EOL> return self . _fields is not None </s>
