Git Product home page Git Product logo

todaytix-lottery's Introduction

TodayTix Group Lottery Feature

This repository provides a detailed pseudo-code implementation for the user flow of the TodayTix Group (TTG) ticket lottery system. Each folder in this repository represents a distinct component of the feature, containing functionalities such as lottery entry (LotteryFinder), winner selection (WinnerSelector), and ticket claiming (TicketClaimer). The pseudo-code is available in both Java and Swift, illustrating how these processes can be implemented across different platforms (iOS and Android). The code is documented to highlight key programming concepts and integrations with external services like Firebase, PayPal, and Apple/Google Pay APIs. Here is a brief overview of each component:

LotteryFinder: Filters and finds available lotteries based on the user's city and show criteria.

- API: GET /lotteries/{city}
- Objects/Classes: City, Show, Lottery
- Web API: Google Places API for validating city locations if needed.

LotteryEntry: Manages the process of users entering a lottery for a specific show.

- API: POST /lottery/enter
- Objects/Classes: User, Show, LotteryEntry
- Web API: Firebase Authentication for managing user sessions and entries.

WinnerSelector: Algorithm to randomly select winners.

- API: POST /lottery/{lotteryId}/draw-winners
- Objects/Classes: Lottery, EntryList, WinnerSelector
- Web API: Google Cloud's random number generation services for fairness in lottery picks

Notifier: Handles notifications to the winners.

- APIs: POST /notifications/send-in-app
- Objects/Classes: Notification, UserNotifier
- Web API: Firebase Cloud Messaging for in-app notifications

TicketClaimer: Manages the process for winners to claim their tickets within the given time frame.

-API: POST /tickets/claim
- Objects/Classes: Ticket, ClaimTimer, User
- Web API: PayPal API for handling the payment processing

ClaimCloser: A scheduled service that stops accepting ticket claims from winners after the claim time period has ended.

- API: POST /tickets/{ticketId}/close
- Objects/Classes: Ticket, Scheduler
- Web API: Firebase Cloud Function for scheduling tasks

PaymentProcessor: Processes payments and issues tickets upon successful transactions.

- API: POST /tickets/issue
- Objects/Classes: Payment, TicketIssuer, UserOrder
- Web API: Apple Pay API and Google Pay API for processing payments

todaytix-lottery's People

Contributors

faris-kazi avatar

Watchers

 avatar

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.