package Ġcom . prt 2 1 2 1 . cap stone . data Ċ Ċ import Ġandroid . content . Content Resolver Ċ import Ġandroid . content . Content U ris Ċ import Ġandroid . net . Uri Ċ import Ġandroid . provider . Base Columns Ċ import Ġcom . prt 2 1 2 1 . cap stone . data . Invite Contract . BASE _ CONTENT _ URI Ċ import Ġcom . prt 2 1 2 1 . cap stone . data . Invite Contract . CONTENT _ AUTH ORITY Ċ import Ġcom . prt 2 1 2 1 . cap stone . data . Invite Contract . PATH _ INV ITE Ċ import Ġcom . prt 2 1 2 1 . cap stone . data . Invite Contract . PATH _ INV ITE _ FROM _ ME Ċ import Ġcom . prt 2 1 2 1 . cap stone . data . Invite Contract . PATH _ USER Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġpt 2 1 2 1 Ġon Ġ 2 / 9 / 1 6 . Ċ Ġ* Ċ Ġ* ĠDefines Ġtable Ġand Ġcolumn Ġnames Ġfor Ġthe Ġinvite Ġdatabase . Ċ Ġ*/ Ċ object ĠInv ite Contract Ġ{ ĊĠ Ġconst Ġval ĠCONTENT _ AUTH ORITY Ġ= Ġ" com . prt 2 1 2 1 . cap stone " ĊĠ Ġval ĠBASE _ CONTENT _ URI Ġ= ĠUri . parse (" content :// $ CONTENT _ AUTH ORITY ") ĊĠ Ġconst Ġval ĠPATH _ INV ITE Ġ= Ġ" invite " ĊĠ Ġconst Ġval ĠPATH _ INV ITE _ FROM _ ME Ġ= Ġ" me " Ġ// Ġquery Ġonly ĊĠ Ġconst Ġval ĠPATH _ USER Ġ= Ġ" user " Ċ } Ċ Ċ object ĠInv ite Entry Ġ: ĠBase Columns Ġ{ ĊĠ Ġval ĠQUERY _ URI Ġ= ĠBASE _ CONTENT _ URI . build Up on (). append Path ( PATH _ INV ITE _ FROM _ ME ). build () ĊĠ Ġval ĠCONTENT _ URI Ġ= ĠBASE _ CONTENT _ URI . build Up on (). append Path ( PATH _ INV ITE ). build () ĊĠ Ġconst Ġval ĠCONTENT _ TYPE Ġ= ĊĠĠĠĠĠ ĠContent Resolver . CURSOR _ DIR _ BASE _ TYPE Ġ+ Ġ"/" Ġ+ ĠCONTENT _ AUTH ORITY Ġ+ Ġ"/" Ġ+ ĠPATH _ INV ITE ĊĠ Ġconst Ġval ĠCONTENT _ ITEM _ TYPE Ġ= ĊĠĠĠĠĠ ĠContent Resolver . CURSOR _ ITEM _ BASE _ TYPE Ġ+ Ġ"/" Ġ+ ĠCONTENT _ AUTH ORITY Ġ+ Ġ"/" Ġ+ ĠPATH _ INV ITE ĊĊĠ Ġconst Ġval ĠTABLE _ NAME Ġ= Ġ" invite " ĊĊĠ Ġconst Ġval ĠCOLUMN _ BACKEND _ ID Ġ= Ġ" id " ĊĠ Ġ// Ġfrom Ġuser Ġid ĊĠ Ġconst Ġval ĠCOLUMN _ FROM _ ID Ġ= Ġ" from _ id " ĊĠ Ġ// Ġto Ġuser Ġid ĊĠ Ġconst Ġval ĠCOLUMN _ TO _ ID Ġ= Ġ" to _ id " ĊĠ Ġconst Ġval ĠCOLUMN _ DEST INATION _ LAT L NG Ġ= Ġ" destination _ lat lng " ĊĠ Ġconst Ġval ĠCOLUMN _ DEST INATION _ ADDRESS Ġ= Ġ" destination _ address " ĊĠ Ġconst Ġval ĠCOLUMN _ MESSAGE Ġ= Ġ" message " ĊĠ Ġconst Ġval ĠCOLUMN _ STATUS Ġ= Ġ" status " ĊĠ Ġconst Ġval ĠCOLUMN _ P ICK UP _ ADDRESS Ġ= Ġ" pickup _ address " ĊĠ Ġconst Ġval ĠCOLUMN _ CREATE _ AT Ġ= Ġ" create _ at " ĊĊĠ Ġfun Ġbuild Uri ( id : ĠLong ): ĠUri Ġ= ĠContent U ris . with App ended Id ( CONTENT _ URI , Ġid ) ĊĊĠ Ġfun Ġget Invite Id From Uri ( uri : ĠUri ): ĠString Ġ= Ġuri . path Segments [ 1 ] Ċ } Ċ Ċ object ĠUser Entry Ġ: ĠBase Columns Ġ{ ĊĠ Ġval ĠCONTENT _ URI Ġ= ĠBASE _ CONTENT _ URI . build Up on (). append Path ( PATH _ USER ). build () ĊĠ Ġconst Ġval ĠCONTENT _ TYPE Ġ= ĊĠĠĠĠĠ ĠContent Resolver . CURSOR _ DIR _ BASE _ TYPE Ġ+ Ġ"/" Ġ+ ĠCONTENT _ AUTH ORITY Ġ+ Ġ"/" Ġ+ ĠPATH _ USER ĊĠ Ġconst Ġval ĠCONTENT _ ITEM _ TYPE Ġ= ĊĠĠĠĠĠ ĠContent Resolver . CURSOR _ ITEM _ BASE _ TYPE Ġ+ Ġ"/" Ġ+ ĠCONTENT _ AUTH ORITY Ġ+ Ġ"/" Ġ+ ĠPATH _ USER ĊĊĠ Ġconst Ġval ĠTABLE _ NAME Ġ= Ġ" user " ĊĠ Ġconst Ġval ĠCOLUMN _ FIRST _ NAME Ġ= Ġ" firstName " ĊĠ Ġconst Ġval ĠCOLUMN _ LAST _ NAME Ġ= Ġ" lastName " ĊĠ Ġconst Ġval ĠCOLUMN _ PHONE _ NUMBER Ġ= Ġ" phoneNumber " ĊĠ Ġconst Ġval ĠCOLUMN _ PH OTO _ URI Ġ= Ġ" photo Uri " ĊĊĠ Ġfun Ġbuild Uri ( id : ĠLong ): ĠUri Ġ= ĠContent U ris . with App ended Id ( CONTENT _ URI , Ġid ) Ċ }