#NEWLINE# def __init__( self , user_id , full_name , first_name , photo_url , emails , is_self ) : #NEWLINE# #INDENT# 'Initialize a User.' #NEWLINE# if ( not full_name ) : #NEWLINE# #INDENT# self . full_name = self . first_name = DEFAULT_NAME #NEWLINE# self . name_type = NameType . DEFAULT #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not any ( ( c . isalpha ( ) for c in full_name ) ) ) : #NEWLINE# #INDENT# self . full_name = self . first_name = full_name #NEWLINE# self . name_type = NameType . NUMERIC #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . full_name = ( full_name if full_name else DEFAULT_NAME ) #NEWLINE# self . first_name = ( first_name if first_name else self . full_name . split ( ) [ 0 ] ) #NEWLINE# self . name_type = NameType . REAL #NEWLINE# #UNINDENT# #UNINDENT# self . id_ = user_id #NEWLINE# self . photo_url = photo_url #NEWLINE# self . emails = emails #NEWLINE# self . is_self = is_self