comment android app

This commit is contained in:
2026-04-20 21:52:02 -06:00
parent 329053bfb9
commit 97acb7e17f
180 changed files with 1203 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
/*
* Application entry point, sets up Hilt dependency injection.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile;
import android.app.Application;

View File

@@ -1,3 +1,9 @@
/*
* Screen where the user can request a password reset email.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.activities;
import android.os.Bundle;

View File

@@ -1,3 +1,9 @@
/*
* Main home screen that shows the dashboard after the user logs in.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.activities;
import android.Manifest;

View File

@@ -1,3 +1,9 @@
/*
* Entry point of the app that shows the login and registration screen.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.activities;
import android.content.Intent;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying activity log entries in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing adoption records in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing appointments in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Custom array adapter that displays items with black text.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.content.Context;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying chat conversations in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing coupons in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying customer entries in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying employee entries in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing inventory items in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying chat messages in a conversation.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing pets in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying products in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.*;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing product-supplier links in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying purchase orders in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing sales in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for displaying services in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Adapter for showing suppliers in a list.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.view.LayoutInflater;

View File

@@ -1,3 +1,10 @@
/*
* Custom array adapter that displays items with white text.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.adapters;
import android.content.Context;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for activity log endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.ActivityLogDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for adoption endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.AdoptionDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for appointment endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.AppointmentDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for category endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.CategoryDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for chat and conversation endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.ConversationDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for coupon endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.CouponDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for customer endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.CustomerDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for employee endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.EmployeeDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for inventory endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.BulkDeleteRequest;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for message endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.MessageDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for pet endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.BulkDeleteRequest;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for product endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.DropdownDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for product-supplier endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.BulkDeleteRequest;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for purchase order endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.PageResponse;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for refund endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.RefundDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for sale endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.PageResponse;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for service endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.BulkDeleteRequest;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for store endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.DropdownDTO;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for supplier endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.BulkDeleteRequest;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for user endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api;
import com.example.petstoremobile.dtos.PageResponse;

View File

@@ -1,3 +1,10 @@
/*
* Retrofit interface for login and registration endpoints.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api.auth;
import com.example.petstoremobile.dtos.AuthDTO;

View File

@@ -1,3 +1,10 @@
/*
* Interceptor that attaches the auth token to outgoing requests.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api.auth;
import androidx.annotation.NonNull;

View File

@@ -1,3 +1,10 @@
/*
* Handles saving and retrieving the authentication token.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.api.auth;
import android.content.Context;

View File

@@ -1,3 +1,10 @@
/*
* Sets up the Retrofit client and dependency injection for network calls.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.di;
import android.content.Context;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for activity log entries.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for adoption records.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.math.BigDecimal;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for appointments.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for authentication requests and responses.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Response object returned after uploading an avatar image.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Request object for deleting multiple items at once.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.util.List;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for categories.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for chat conversations.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for coupons.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.math.BigDecimal;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for customers.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import com.google.gson.annotations.SerializedName;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object used to populate dropdown menus.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for employees.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Represents an error response from the server.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for inventory items.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for chat messages.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import com.google.gson.annotations.SerializedName;

View File

@@ -1,3 +1,10 @@
/*
* Wrapper for paginated responses from the server.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.util.List;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for pets.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for products.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.math.BigDecimal;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for product-supplier relationships.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.math.BigDecimal;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for purchase orders.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for refunds.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.math.BigDecimal;

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for sales.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
import java.math.BigDecimal;

View File

@@ -1,3 +1,10 @@
/*
* Request object for sending a new chat message.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for services.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for store information.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for suppliers.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Request object for changing a conversation's status.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Data transfer object for user account information.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.dtos;
/**

View File

@@ -1,3 +1,10 @@
/*
* Fragment for the real-time chat screen.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments;
import android.app.Activity;

View File

@@ -1,3 +1,10 @@
/*
* Base fragment that provides common list and search functionality.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for viewing and editing the user's profile.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments;
import android.net.Uri;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing the activity log.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.app.DatePickerDialog;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing adoption records.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for displaying store analytics and charts.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing appointments.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.graphics.Color;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing coupons.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing customers.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing inventory items.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing pets.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing products.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing product-supplier links.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing purchase orders.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing sales.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing services.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing staff members.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Fragment for browsing suppliers.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single adoption.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single appointment.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single coupon.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single customer.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single inventory item.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.os.Bundle;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single pet.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.net.Uri;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a single product.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.net.Uri;

View File

@@ -1,3 +1,10 @@
/*
* Detail screen for viewing and editing a product-supplier link.
*
* Author: Alex, Nikitha
* Date: April 2026
*/
package com.example.petstoremobile.fragments.listfragments.detailfragments;
import android.os.Bundle;

Some files were not shown because too many files have changed in this diff Show More