MandalaConsulting.Objects 0.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package MandalaConsulting.Objects --version 0.0.8
                    
NuGet\Install-Package MandalaConsulting.Objects -Version 0.0.8
                    
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="MandalaConsulting.Objects" Version="0.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MandalaConsulting.Objects" Version="0.0.8" />
                    
Directory.Packages.props
<PackageReference Include="MandalaConsulting.Objects" />
                    
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 MandalaConsulting.Objects --version 0.0.8
                    
#r "nuget: MandalaConsulting.Objects, 0.0.8"
                    
#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 MandalaConsulting.Objects@0.0.8
                    
#: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=MandalaConsulting.Objects&version=0.0.8
                    
Install as a Cake Addin
#tool nuget:?package=MandalaConsulting.Objects&version=0.0.8
                    
Install as a Cake Tool

MandalaConsulting.Objects

Overview

The MandalaConsulting.Objects library provides a simple and reusable framework for encapsulating response data objects in .NET applications. It includes pre-built classes like ResponseData to standardize the structure of API responses or other object-oriented data exchange patterns.


Features

  • Lightweight: A minimal library designed for quick integration.
  • Reusability: Provides standardized object structures for data exchange.
  • Flexibility: Easily adaptable for a wide variety of use cases.

Installation

Simply include the library in your .NET project. Ensure that you reference the MandalaConsulting.Objects namespace in your code.


Usage

Import the Namespace

using MandalaConsulting.Objects;

ResponseData Class

The ResponseData class is a flexible container for passing structured data between layers or systems.

Constructors
  1. Default Constructor

    ResponseData responseData = new ResponseData();
    
  2. Parameterized Constructor

    ResponseData responseData = new ResponseData("Success", someData, null);
    
Properties
  • Data: Contains the main payload (e.g., result of an operation).
  • Error: Stores error details, if any.
  • message: Holds a status message or description.
Example Usage
var response = new ResponseData
{
    message = "Operation completed successfully",
    Data = new { Id = 1, Name = "John Doe" },
    Error = null
};

// Access properties
Console.WriteLine(response.message);  // Output: Operation completed successfully
Console.WriteLine(response.Data);    // Output: { Id = 1, Name = "John Doe" }

Requirements

  • .NET Framework or .NET Core
  • No additional dependencies required.

License

This project is copyrighted © 2023 Mandala Consulting, LLC.
All Rights Reserved.


Author

Created by Alexander Fields
For inquiries, please contact Mandala Consulting.

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.

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.15 150 9/1/2025
0.0.13 104 7/5/2025
0.0.12 308 6/12/2025
0.0.11 293 6/12/2025
0.0.10 221 6/8/2025
0.0.9 166 5/9/2025
0.0.8 832 11/17/2024
0.0.7 284 11/17/2024
0.0.6 458 10/12/2024