Giter Club home page Giter Club logo

unique's Introduction

Unique

Repository for Unique

Code CodeConventions

  • Class Names in English and Describing function

e.g.

public Unique(){

}

public String getPhoneNumber(){

}

  • Comments above every Method describing what it does

  • VarNames no abbreviations and no general terms like Date or Time

unique's People

Contributors

souwa avatar mindblaster avatar

Watchers

James Cloos avatar  avatar  avatar

unique's Issues

Create Match Class

Class needs to match local Uniques to Server Uniques to avoid Doubles.

Create Service

Service has folllowing Tasks

Update current position in set intervalls
Ask Server if Uniques can be found around current Location
Check if Event is Starting in Time Intervall.

Setup Local Storage

Create Local Storage with Tables for:

  • Events
  • Uniques
  • Events | Unique
  • Events | MyUniques
  • MyUniques

Create ObjectClass Event

Must contain:
EventDescription:
- int ID (Event id created by local DB)
- String Name
- Date Datum

String Ort
Unique myUnique
Boolean UniqueShared
ArrayList receivedUniques

Evtl. noch Pfad fürs Bild oder Bild selber

Create All Fragements needed

  • EventListFragment
  • MyUniquesFragment
  • AllUniquesFragment
  • SettingsFragment
  • HelpFragment
  • AppInfoFragment
  • EventDetailFragment
  • CreateEventFragment
  • Create UniqueFragment
  • UniqueDetailFragment

Create ObjectClass UniqueDescription

UniqueDescription

  • String Name
  • int LocalID
  • String Tag
  • String Text
  • String PhoneNumber
  • String E-Mail
  • String FacebookName
  • String TwitterName
  • Boolean isFavorite

Create Class for Datebase Connection Using Parse

ParseDatabaseHandler
Include following Methods

public void uploadUnique(Unique)
Uploads Unique and gets its ID from the Database. This ID needs to be stored locally.

public void deleteUnique(UniqueID)
Deletes Unique from Server

public void updateLocation(Unique ID)
Updates Location of Unique.

public ArrayList getUniquesByRad(position)
Gets Uniques in Proximity to current location defined by SystemVar RAD (in Meters)

Don't download Location.

Create ObjectClass Unique

Must contain
UniqueDescription

  • String Name
  • int LocalID
  • String Tag
  • String Text
  • String PhoneNumber
  • String E-Mail
  • String FacebookName
  • String TwitterName
  • Boolean isFavorite

int ServerID
LatLng Position

Pfad Foto wenn in DB implementiert

Create LocalStorageHandler

Should contain following Methods

public ArrayList getAllEventsByTime(CurrentDate, String TimeFrame)
TimeFrame is either FUTURE or PAST.
public Event getEventByID(EventID)
public void createEvent(Event)
public void deleteEvent()

public ArrayList getAllUniques()
public Unique getUniqueById(UniqueID)
public void deleteUnique(UniqueID)

public ArrayList getMyUniques()
public Unique getMyUniqueByID(UniqueID)
public void createMyUnique(Unique)
public void deleteMyUnique(UniqueID)

public Boolean UniqueIsInLocalStorage(ServerID)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.