2017-05-16 03:38:47 +01:00
//
// Author:
// Natalia Portillo claunia@claunia.com
//
// Copyright (c) 2017, © Claunia.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in
// the documentation and/or other materials provided with the distribution.
// * Neither the name of the [ORGANIZATION] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
2017-12-30 00:32:21 +00:00
2018-02-23 02:14:58 +00:00
using apprepodbmgr.Core ;
2017-05-15 07:33:13 +01:00
using Schemas ;
2018-02-23 02:14:58 +00:00
namespace apprepodbmgr.Eto
2017-05-15 07:30:27 +01:00
{
2020-08-22 21:37:02 +01:00
internal class DBEntryForEto
2017-05-15 07:30:27 +01:00
{
2020-08-22 21:37:02 +01:00
readonly DbEntry _item ;
2017-12-30 00:32:21 +00:00
2020-08-22 21:37:02 +01:00
public DBEntryForEto ( DbEntry item ) = > _item = item ;
2017-05-15 07:33:13 +01:00
2017-12-30 00:32:21 +00:00
public long id
{
2020-08-22 21:37:02 +01:00
get = > _item . Id ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string developer
{
2020-08-22 21:37:02 +01:00
get = > _item . Developer ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string product
{
2020-08-22 21:37:02 +01:00
get = > _item . Product ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string version
{
2020-08-22 21:37:02 +01:00
get = > _item . Version ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string languages
{
2020-08-22 21:37:02 +01:00
get = > _item . Languages ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string architecture
{
2020-08-22 21:37:02 +01:00
get = > _item . Architecture ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2018-03-15 15:55:59 +00:00
public string targetos
2017-12-30 00:32:21 +00:00
{
2020-08-22 21:37:02 +01:00
get = > _item . TargetOs ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string format
{
2020-08-22 21:37:02 +01:00
get = > _item . Format ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string description
{
2020-08-22 21:37:02 +01:00
get = > _item . Description ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public bool oem
{
2020-08-22 21:37:02 +01:00
get = > _item . Oem ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public bool upgrade
{
2020-08-22 21:37:02 +01:00
get = > _item . Upgrade ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public bool update
{
2020-08-22 21:37:02 +01:00
get = > _item . Update ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public bool source
{
2020-08-22 21:37:02 +01:00
get = > _item . Source ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public bool files
{
2020-08-22 21:37:02 +01:00
get = > _item . Files ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2018-03-15 15:55:59 +00:00
public bool Installer
2017-12-30 00:32:21 +00:00
{
2020-08-22 21:37:02 +01:00
get = > _item . Installer ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public byte [ ] xml
{
2020-08-22 21:37:02 +01:00
get = > _item . Xml ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public byte [ ] json
{
2020-08-22 21:37:02 +01:00
get = > _item . Json ;
set { }
2017-12-30 00:32:21 +00:00
}
2020-08-22 21:37:02 +01:00
2017-12-30 00:32:21 +00:00
public string mdid
{
2020-08-22 21:37:02 +01:00
get = > _item . Mdid ;
set { }
2017-12-30 00:32:21 +00:00
}
2017-05-15 07:33:13 +01:00
2017-12-30 00:32:21 +00:00
public DbEntry original
{
2020-08-22 21:37:02 +01:00
get = > _item ;
set { }
2017-12-30 00:32:21 +00:00
}
2017-05-15 07:33:13 +01:00
}
2020-08-22 21:37:02 +01:00
internal class StringEntry
2017-05-15 07:33:13 +01:00
{
public string str { get ; set ; }
}
2020-08-22 21:37:02 +01:00
internal class BarcodeEntry
2017-05-15 07:33:13 +01:00
{
2017-12-30 00:32:21 +00:00
public string code { get ; set ; }
2017-05-15 07:33:13 +01:00
public BarcodeTypeType type { get ; set ; }
}
2020-08-22 21:37:02 +01:00
internal class DiscEntry
2017-05-15 07:33:13 +01:00
{
2017-12-30 00:32:21 +00:00
public string path { get ; set ; }
2017-05-15 07:33:13 +01:00
public OpticalDiscType disc { get ; set ; }
}
2020-08-22 21:37:02 +01:00
internal class DiskEntry
2017-05-15 07:33:13 +01:00
{
2017-12-30 00:32:21 +00:00
public string path { get ; set ; }
2017-05-15 07:33:13 +01:00
public BlockMediaType disk { get ; set ; }
2017-05-15 07:30:27 +01:00
}
2018-03-16 15:44:58 +00:00
2020-08-22 21:37:02 +01:00
internal class TargetOsEntry
2018-03-16 15:44:58 +00:00
{
2020-08-22 21:37:02 +01:00
public string name { get ; set ; }
2018-03-16 15:44:58 +00:00
public string version { get ; set ; }
}
2017-12-30 00:32:21 +00:00
}