Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8211469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:26:11+00:00 2026-06-07T10:26:11+00:00

I am currently developing a client library for connecting to Newegg using the documentation

  • 0

I am currently developing a client library for connecting to Newegg using the documentation provided by Newegg and have a question on class design.

In working with various API’s ( namely NetSuite and Amazon’s MWS ) I come across classes that have are used like this:

 recToFulfill.packageList = new ItemFulfillmentPackageList();
 recToFulfill.packageList.package = new ItemFulfillmentPackage[ifitemlist.item.Length];
 recToFulfill.packageList.package[i] = new ItemFulfillmentPackage();
 recToFulfill.packageList.package[i].packageWeightSpecified = true;
 recToFulfill.packageList.package[i].packageTrackingNumber = "trackingNumber";

The question I have is: How do I properly design the nested objects like above? I have never had to worry about this previously, so I am unsure on where to look, or start.

The bit I need to figure out looks like this ( taken from the API documentation provided):

<UpdateOrderStatusInfo>
    <IsSuccess></IsSuccess>
    <Result>
        <OrderNumber></OrderNumber>
        <SellerID></SellerID>
        <OrderStatus></OrderStatus>
    </Result>
</UpdateOrderStatusInfo>

All fields are type string, except order number which is an integer.

I have this currently:

 public class UpdateOrderStatusInfo
{
    public string IsSuccess { get; set; }
    public int OrderNumber { get; set; }
    public string SellerID { get; set; }
    public string OrderStatus { get; set; }
}

But the returned XML Response has Results as a parent node which to me seems like it should be represented within the class itself. Would I just do this?

public UpdateOrderStatusInfo results {get; set;}

If so, where do the child nodes go?

What I need is to be able to say is something like:

UpdateOrderStatusInfo updateInfo = new UpdateOrderStatusInfo();
if(updateInfo.IsSuccess.Equals("true")
{
     Console.WriteLine(updateInfo.Results.OrderStatus);
}    

Any help, or advice on where to get this information is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:26:14+00:00Added an answer on June 7, 2026 at 10:26 am

    You need to define the Result as a separate class, called whatever you want, then add a Result property as that type. The Result class can be defined at the namespace level, or, if you are unlikely to use it anywhere else on its own, you can nest the class definition inside the UpdateOrderStatusInfo class:

    public class UpdateOrderStatusInfo
    {
        public class UpdateOrderResult
        {
            public int OrderNumber { get; set; }
            public string SellerID { get; set; }
            public string OrderStatus { get; set; }
        }
    
        public UpdateOrderStatusInfo()
        {
            Result = new UpdateOrderResult();
        }
    
        public string IsSuccess { get; set; }
        public UpdateOrderResult Result { get; set; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SO. I'm working with the OCS UCCAPI, developing a custom OCS client. I'm currently
I'm developing a custom Adsense report tool using Google Java Client Library for Android
I am currently developing a service using the SharePoint 2010 Client Object Model to
I am currently developing 2 sites that have identical functionality for a single client,
I'm currently developing the networking for my game, and have a client and a
I'm currently developing a google drive client. This documentation describes how to access collections
I'm currently developing a client/server application in Java and i can't make up my
I am currently developing a site for a client which uses the JQuery cycle
I'm currently developing a system to transmit data between client and server, and was
The model that I am currently developing involves three elements: A client application with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.