
from google.appengine.ext import db
from spot import Spot


class TalkyUser(db.Model):
    #Facebook fb-id
    fb-id = db.StringProperty()

    #Indicate where am I
    spot = db.ReferenceProperty(reference_class=Spot, collection_name='users')
    """
    #implicity properties
    posts:<collection of UserPost>
    replies:<collection of PostReply>
    outgoingMessages:<collection of Message>
    incomingMessages:<collection of Message>
    outgoingFriendshipRequest:<collection of FriendshipRequest>
    pendingFrinedshipRequest:<collection of FriendshipRequest>
    """
    #TODO
    #User Pereference...
    def __init__(self, fb-id):
        self.fb-id = fb-id
    def get_fb-id(self):
        return self.fb-id


from google.appengine.ext import db
from spot import Spot


class TalkyUser(db.Model):
    #Facebook fb-id
    fb_id = db.StringProperty()

    #Indicate where am I
    spot = db.ReferenceProperty(reference_class=Spot, collection_name='users')
    """
    #implicity properties
    posts:<collection of UserPost>
    replies:<collection of PostReply>
    outgoingMessages:<collection of Message>
    incomingMessages:<collection of Message>
    outgoingFriendshipRequest:<collection of FriendshipRequest>
    pendingFrinedshipRequest:<collection of FriendshipRequest>
    """
    #TODO
    #User Pereference...
    def __init__(self, fb_id):
        self.fb_id = fb_id
    def get_fb_id(self):
        return self.fb_id

modify fb-uid =< fb_uid