var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/// <reference path="./AbstractStorage.ts" />
var econda;
(function (econda) {
    var env;
    (function (env) {
        var SessionStorage = (function (_super) {
            __extends(SessionStorage, _super);
            function SessionStorage() {
                _super.apply(this, arguments);
            }
            SessionStorage.prototype.storage = function () {
                return window.sessionStorage;
            };
            SessionStorage.isAvailable = function () {
                return new SessionStorage().isAvailable();
            };
            SessionStorage.setItem = function (key, data) {
                new SessionStorage().setItem(key, data);
            };
            SessionStorage.getItem = function (key) {
                return new SessionStorage().getItem(key);
            };
            SessionStorage.removeItem = function (key) {
                new SessionStorage().removeItem(key);
            };
            return SessionStorage;
        }(econda.env.AbstractStorage));
        env.SessionStorage = SessionStorage;
    })(env = econda.env || (econda.env = {}));
})(econda || (econda = {}));