예제 #1
0
 /// <summary>
 /// CreateResult Constructor.
 /// </summary>
 /// <param name="result">MbSpecificError with info about the operation.</param>
 public CreateResult(MbSpecificError result)
     : this(-1, result)
 {
 }
예제 #2
0
 /// <summary>
 /// CreateResult Constructor.
 /// </summary>
 /// <param name="id">ID of the item created.</param>
 /// <param name="result">MbSpecificError with info about the operation.</param>
 public CreateResult(int id, MbSpecificError result)
     : this()
 {
     ID       = id;
     MBResult = result;
 }
예제 #3
0
 /// <summary>
 /// CreateResult Constructor.
 /// </summary>
 /// <param name="id">ID of the item created.</param>
 public CreateResult(int id)
     : this(id, MbSpecificError.NoError())
 {
 }
예제 #4
0
 /// <summary>
 /// GenericResult Constructor.
 /// </summary>
 /// <param name="result">MbSpecificError of the GenericResult. </param>
 public GenericResult(MbSpecificError result)
     : this()
 {
     MBResult = result;
 }
예제 #5
0
 /// <summary>
 /// GenericResult Constructor Success case.
 /// </summary>
 /// <returns>GenericResult.</returns>
 public static GenericResult Success()
 {
     return(new GenericResult(MbSpecificError.NoError()));
 }
예제 #6
0
 public BrowseResult(t[] items) : this(new List <t>(items), MbSpecificError.NoError())
 {
 }
예제 #7
0
 /// <summary>
 /// BrowseResult Constructor.
 /// </summary>
 /// <param name="result">MbSpecificError with info about the operation.</param>
 public BrowseResult(MbSpecificError result) : this(null, result)
 {
 }
예제 #8
0
 /// <summary>
 /// BrowseResult Constructor.
 /// </summary>
 /// <param name="items">Object Collection.</param>
 public BrowseResult(List <t> items) : this(items, MbSpecificError.NoError())
 {
 }
예제 #9
0
 public BrowseResult(List <t> items, MbSpecificError result)
     : this()
 {
     Items    = items;
     MBResult = result;
 }
예제 #10
0
 /// <summary>
 /// CreateResult Constructor.
 /// </summary>
 /// <param name="result">MbSpecificError with info about the operation.</param>
 public SimpleResult(MbSpecificError result)
     : this(default(T), result)
 {
 }
예제 #11
0
 public SimpleResult(T item)
     : this(item, MbSpecificError.NoError())
 {
 }
예제 #12
0
 public SimpleResult(T item, MbSpecificError result)
     : this()
 {
     Item     = item;
     MBResult = result;
 }