public Observable < Mail > starMail ( int mailId , final boolean star ) { return getMail ( mailId ) . map ( new Func1 < Mail , Mail > ( ) { @ Override public Mail call ( Mail mail ) { mail . setStarred ( star ) ; return mail ; } } ) ; }
Star or unstar a mail