31 lines
874 B
C#
31 lines
874 B
C#
using System;
|
|
using ln.http;
|
|
using System.Collections;
|
|
namespace ln.json.http
|
|
{
|
|
public class ObjectRequest
|
|
{
|
|
public ObjectRequest ParentRequest { get; }
|
|
public HttpRequest HttpRequest { get; }
|
|
|
|
public string[] RequestPath { get; }
|
|
public object Value { get; }
|
|
|
|
public ObjectRequest(HttpRequest httpRequest,string requestPath)
|
|
{
|
|
HttpRequest = httpRequest;
|
|
RequestPath = requestPath.Split(new char[] { '/' });
|
|
}
|
|
ObjectRequest(ObjectRequest parentRequest,HttpRequest httpRequest,string[] requestPath,object lastValue)
|
|
{
|
|
ParentRequest = parentRequest;
|
|
HttpRequest = httpRequest;
|
|
RequestPath = requestPath;
|
|
Value = lastValue;
|
|
}
|
|
|
|
public string[] RequestedPath => throw new NotImplementedException();
|
|
|
|
}
|
|
}
|