// Copyright © 2016 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.
using System;
namespace CefSharp
{
///
/// Represents an entry in navigation history.
///
public sealed class NavigationEntry
{
///
/// Returns the time for the last known successful navigation completion.
///
public DateTime CompletionTime { get; private set; }
///
/// Returns a display-friendly version of the URL.
///
public string DisplayUrl { get; private set; }
///
/// Returns the HTTP status code for the last known successful navigation response.
///
public int HttpStatusCode { get; private set; }
///
/// Returns the original URL that was entered by the user before any redirects.
///
public string OriginalUrl { get; private set; }
///
/// Returns the title set by the page.
///
public string Title { get; private set; }
///
/// Returns the transition type which indicates what the user did to move to this page from the previous page.
///
public TransitionType TransitionType { get; private set; }
///
/// Returns the actual URL of the page.
///
public string Url { get; private set; }
///
/// Returns true if this navigation includes post data.
///
public bool HasPostData { get; private set; }
///
/// Returns true if this object is valid.
///
public bool IsValid { get; private set; }
///
/// If true if this entry is the currently loaded navigation entry
///
public bool IsCurrent { get; private set; }
///
/// Returns the SSL information for this navigation entry.
///
public SslStatus SslStatus { get; private set; }
///
/// NavigationEntry
///
/// completionTime
/// displayUrl
/// httpStatusCode
/// originalUrl
/// title
/// transitionType
/// url
/// hasPostData
/// isValid
/// is the current entry
/// the ssl status
public NavigationEntry(bool isCurrent, DateTime completionTime, string displayUrl, int httpStatusCode, string originalUrl, string title, TransitionType transitionType, string url, bool hasPostData, bool isValid, SslStatus sslStatus)
{
IsCurrent = isCurrent;
CompletionTime = completionTime;
DisplayUrl = displayUrl;
HttpStatusCode = httpStatusCode;
OriginalUrl = originalUrl;
Title = title;
TransitionType = transitionType;
Url = url;
HasPostData = hasPostData;
IsValid = isValid;
SslStatus = sslStatus;
}
}
}