// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
using System.Collections.Generic;
namespace CefSharp
{
///
public class PostData : IPostData
{
private CefSharp.Core.PostData postData = new CefSharp.Core.PostData();
///
public IList Elements
{
get { return postData.Elements; }
}
///
public bool IsReadOnly
{
get { return postData.IsReadOnly; }
}
///
public bool IsDisposed
{
get { return postData.IsDisposed; }
}
///
public bool HasExcludedElements
{
get { return postData.HasExcludedElements; }
}
///
public bool AddElement(IPostDataElement element)
{
return postData.AddElement(element);
}
///
public IPostDataElement CreatePostDataElement()
{
return new CefSharp.Core.PostDataElement();
}
///
public void Dispose()
{
postData.Dispose();
}
///
public bool RemoveElement(IPostDataElement element)
{
return postData.RemoveElement(element);
}
///
public void RemoveElements()
{
postData.RemoveElements();
}
///
/// Used internally to get the underlying instance.
/// Unlikely you'll use this yourself.
///
/// the inner most instance
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public IPostData UnWrap()
{
return postData;
}
///
/// Create a new instance of
///
/// PostData
public static IPostData Create()
{
return new CefSharp.Core.PostData();
}
}
}