AnointedAutomation.Objects.API 0.0.17

dotnet add package AnointedAutomation.Objects.API --version 0.0.17
                    
NuGet\Install-Package AnointedAutomation.Objects.API -Version 0.0.17
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AnointedAutomation.Objects.API" Version="0.0.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AnointedAutomation.Objects.API" Version="0.0.17" />
                    
Directory.Packages.props
<PackageReference Include="AnointedAutomation.Objects.API" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AnointedAutomation.Objects.API --version 0.0.17
                    
#r "nuget: AnointedAutomation.Objects.API, 0.0.17"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AnointedAutomation.Objects.API@0.0.17
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AnointedAutomation.Objects.API&version=0.0.17
                    
Install as a Cake Addin
#tool nuget:?package=AnointedAutomation.Objects.API&version=0.0.17
                    
Install as a Cake Tool

AnointedAutomation.Objects.API

A .NET library providing standardized data models and objects for API development, including account management, billing, and common API response structures.

Overview

AnointedAutomation.Objects.API offers a comprehensive set of data models designed for building robust APIs. It includes models for user accounts, billing operations, and standardized API responses with built-in JSON serialization support.

Installation

Install via NuGet:

dotnet add package AnointedAutomation.Objects.API

Features

  • Account Management Models: User accounts, profiles, credentials, and IP information
  • Billing System Models: Complete billing workflow including products, purchases, subscriptions, and payment processing
  • API Response Standardization: Consistent response format with generic type support
  • File Upload Support: Custom form file handling for multipart uploads
  • MongoDB Integration: Built-in MongoDB support for all data models
  • JSON Serialization: Newtonsoft.Json integration with custom serializers

Key Components

Account Models

  • User - Core user account information
  • Profile - User profile details
  • Credentials - Authentication credentials
  • IPInfo - IP address tracking and geolocation

Billing Models

  • Product - Product catalog items
  • Purchase - Purchase transactions
  • Subscription - Recurring billing subscriptions
  • Bill - Invoice/bill generation
  • CreditCard - Payment card information
  • PaymentCredentials - Payment authentication
  • Address - Billing/shipping addresses

API Utilities

  • ResponseData<T> - Generic API response wrapper
  • CustomFormFile - Multipart file upload handling
  • JObjectSerializer - Custom JSON serialization for MongoDB

Usage Example

using AnointedAutomation.Objects.API;

// Create a standardized API response
var response = new ResponseData<User>
{
    Success = true,
    Data = new User 
    {
        Email = "user@example.com",
        Username = "johndoe"
    },
    Message = "User retrieved successfully"
};

// Handle file uploads
public async Task<IActionResult> Upload(CustomFormFile file)
{
    if (file != null && file.Length > 0)
    {
        // Process file
    }
}

Dependencies

  • .NET 8.0
  • MongoDB.Driver (3.4.0)
  • Newtonsoft.Json (13.0.3)
  • Microsoft.AspNetCore.Mvc.NewtonsoftJson (8.0.15)

Documentation

For detailed documentation on individual models and their properties, see the API subfolder README.

License

Copyright © 2023 Anointed Automation, LLC. All rights reserved.

Author

Created by Alexander Fields

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.17 25 3/1/2026
0.0.16 30 3/1/2026
0.0.15 75 2/26/2026
0.0.14 135 2/21/2026
0.0.13 100 2/21/2026
0.0.12 84 2/21/2026
0.0.11 97 2/20/2026
0.0.10 132 2/20/2026
0.0.9 86 2/20/2026
0.0.8 97 2/19/2026
0.0.7 114 2/17/2026