# trung-hieu-le/movie-booking-mobile architecture

> Architecture diagram of the GitHub repository trung-hieu-le/movie-booking-mobile, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/trung-hieu-le/movie-booking-mobile
- Repository: https://github.com/trung-hieu-le/movie-booking-mobile

## Overview

This repository contains an Android cinema-booking client. Its visible surface includes login and main activities, an API service, and sign-in and currency models; the README’s only concrete setup instruction is to set the API service’s base URL to the developer machine’s IPv4 address. The backend directory has no files in the supplied tree. Activity-to-service calls and the booking flow cannot be confirmed from the sampled source, so those links are omitted.

Main entry points: [`movie-frontend/app/src/main/java/com/example/cinema/api/ApiService.java`](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/api/ApiService.java) (API service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Android client"]
  node_login["Login screen<br/>[LoginActivity.java]"]
  node_main["Main screen<br/>[MainActivity.java]"]
end

subgraph group_network["API and models"]
  node_api["API service<br/>[ApiService.java]"]
  node_signin["Sign-in models<br/>[SignIn.java]"]
  node_signinresponse["Sign-in response<br/>[SignInReponse.java]"]
  node_currency["Currency model<br/>[Currency.java]"]
end

node_user(("User"))
node_backend["Booking backend"]

node_user -->|"sets base URL"| node_api
node_api -.->|"sends requests"| node_backend

click node_login "https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/view/LoginActivity.java"
click node_main "https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/view/MainActivity.java"
click node_api "https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/api/ApiService.java"
click node_signin "https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/model/SignIn.java"
click node_signinresponse "https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/model/SignInReponse.java"
click node_currency "https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/model/Currency.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_main,node_user toneBlue
class node_api,node_signin,node_signinresponse,node_currency toneAmber
class node_backend toneIndigo
```

## Components

### Android client

- [Login screen](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/view/LoginActivity.java): `movie-frontend/app/src/main/java/com/example/cinema/view/LoginActivity.java`
- [Main screen](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/view/MainActivity.java): `movie-frontend/app/src/main/java/com/example/cinema/view/MainActivity.java`

### API and models

- [API service](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/api/ApiService.java): `movie-frontend/app/src/main/java/com/example/cinema/api/ApiService.java`
- [Sign-in models](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/model/SignIn.java): `movie-frontend/app/src/main/java/com/example/cinema/model/SignIn.java`
- [Sign-in response](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/model/SignInReponse.java): `movie-frontend/app/src/main/java/com/example/cinema/model/SignInReponse.java`
- [Currency model](https://github.com/trung-hieu-le/movie-booking-mobile/blob/master/movie-frontend/app/src/main/java/com/example/cinema/model/Currency.java): `movie-frontend/app/src/main/java/com/example/cinema/model/Currency.java`

### Other components

- **User**
- **Booking backend**

## Connections

- User → API service: sets base URL (evidence: `README.md`)
- API service → Booking backend: sends requests
