-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to SteamPoller implementation
Also added sql script to create database
- Loading branch information
1 parent
5109a89
commit f16d108
Showing
6 changed files
with
779 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
USE [master] | ||
GO | ||
/****** Object: Database [PollingData] Script Date: 2015-05-21 15:51:58 ******/ | ||
CREATE DATABASE [PollingData] | ||
CONTAINMENT = NONE | ||
ON PRIMARY | ||
( NAME = N'PollingData', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\PollingData.mdf' , SIZE = 5120KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) | ||
LOG ON | ||
( NAME = N'PollingData_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\PollingData_log.ldf' , SIZE = 1280KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) | ||
GO | ||
ALTER DATABASE [PollingData] SET COMPATIBILITY_LEVEL = 120 | ||
GO | ||
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) | ||
begin | ||
EXEC [PollingData].[dbo].[sp_fulltext_database] @action = 'enable' | ||
end | ||
GO | ||
ALTER DATABASE [PollingData] SET ANSI_NULL_DEFAULT OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET ANSI_NULLS OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET ANSI_PADDING OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET ANSI_WARNINGS OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET ARITHABORT OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET AUTO_CLOSE OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET AUTO_SHRINK OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET AUTO_UPDATE_STATISTICS ON | ||
GO | ||
ALTER DATABASE [PollingData] SET CURSOR_CLOSE_ON_COMMIT OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET CURSOR_DEFAULT GLOBAL | ||
GO | ||
ALTER DATABASE [PollingData] SET CONCAT_NULL_YIELDS_NULL OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET NUMERIC_ROUNDABORT OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET QUOTED_IDENTIFIER OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET RECURSIVE_TRIGGERS OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET DISABLE_BROKER | ||
GO | ||
ALTER DATABASE [PollingData] SET AUTO_UPDATE_STATISTICS_ASYNC OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET DATE_CORRELATION_OPTIMIZATION OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET TRUSTWORTHY OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET ALLOW_SNAPSHOT_ISOLATION OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET PARAMETERIZATION SIMPLE | ||
GO | ||
ALTER DATABASE [PollingData] SET READ_COMMITTED_SNAPSHOT OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET HONOR_BROKER_PRIORITY OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET RECOVERY FULL | ||
GO | ||
ALTER DATABASE [PollingData] SET MULTI_USER | ||
GO | ||
ALTER DATABASE [PollingData] SET PAGE_VERIFY CHECKSUM | ||
GO | ||
ALTER DATABASE [PollingData] SET DB_CHAINING OFF | ||
GO | ||
ALTER DATABASE [PollingData] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) | ||
GO | ||
ALTER DATABASE [PollingData] SET TARGET_RECOVERY_TIME = 0 SECONDS | ||
GO | ||
ALTER DATABASE [PollingData] SET DELAYED_DURABILITY = DISABLED | ||
GO | ||
EXEC sys.sp_db_vardecimal_storage_format N'PollingData', N'ON' | ||
GO | ||
USE [PollingData] | ||
GO | ||
/****** Object: User [Developer] Script Date: 2015-05-21 15:51:59 ******/ | ||
CREATE USER [Developer] FOR LOGIN [Developer] WITH DEFAULT_SCHEMA=[dbo] | ||
GO | ||
ALTER ROLE [db_owner] ADD MEMBER [Developer] | ||
GO | ||
/****** Object: Table [dbo].[Steam_GameAchievements] Script Date: 2015-05-21 15:51:59 ******/ | ||
SET ANSI_NULLS ON | ||
GO | ||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
SET ANSI_PADDING ON | ||
GO | ||
CREATE TABLE [dbo].[Steam_GameAchievements]( | ||
[ID] [bigint] IDENTITY(1,1) NOT NULL, | ||
[UserID] [bigint] NOT NULL, | ||
[GameID] [int] NOT NULL, | ||
[SessionID] [bigint] NULL, | ||
[Time] [datetime] NOT NULL, | ||
[Name] [varchar](255) NOT NULL, | ||
[Achieved] [bit] NOT NULL, | ||
CONSTRAINT [PK_Steam_GameAchivements] PRIMARY KEY CLUSTERED | ||
( | ||
[ID] ASC | ||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
) ON [PRIMARY] | ||
|
||
GO | ||
SET ANSI_PADDING OFF | ||
GO | ||
/****** Object: Table [dbo].[Steam_GameStats] Script Date: 2015-05-21 15:51:59 ******/ | ||
SET ANSI_NULLS ON | ||
GO | ||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
SET ANSI_PADDING ON | ||
GO | ||
CREATE TABLE [dbo].[Steam_GameStats]( | ||
[ID] [bigint] IDENTITY(1,1) NOT NULL, | ||
[UserID] [bigint] NOT NULL, | ||
[GameID] [int] NOT NULL, | ||
[SessionID] [bigint] NULL, | ||
[Time] [datetime] NOT NULL, | ||
[Name] [varchar](255) NOT NULL, | ||
[Value] [int] NOT NULL, | ||
CONSTRAINT [PK_Steam_GameStatistics] PRIMARY KEY CLUSTERED | ||
( | ||
[ID] ASC | ||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
) ON [PRIMARY] | ||
|
||
GO | ||
SET ANSI_PADDING OFF | ||
GO | ||
/****** Object: Table [dbo].[Steam_GamingSessions] Script Date: 2015-05-21 15:51:59 ******/ | ||
SET ANSI_NULLS ON | ||
GO | ||
SET QUOTED_IDENTIFIER ON | ||
GO | ||
SET ANSI_PADDING ON | ||
GO | ||
CREATE TABLE [dbo].[Steam_GamingSessions]( | ||
[ID] [bigint] IDENTITY(1,1) NOT NULL, | ||
[UserID] [bigint] NOT NULL, | ||
[GameID] [int] NULL, | ||
[GameName] [varchar](255) NOT NULL, | ||
[StartTime] [datetime] NOT NULL, | ||
[EndTime] [datetime] NOT NULL, | ||
CONSTRAINT [PK_Steam_GamingSessions] PRIMARY KEY CLUSTERED | ||
( | ||
[ID] ASC | ||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
) ON [PRIMARY] | ||
|
||
GO | ||
SET ANSI_PADDING OFF | ||
GO | ||
USE [master] | ||
GO | ||
ALTER DATABASE [PollingData] SET READ_WRITE | ||
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
PollingEngine/Implementations/SteamPoller/Settings/ISteamPollerSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace SteamPoller | ||
{ | ||
public interface ISteamPollerSettings | ||
{ | ||
string SteamApiKey { get; set; } | ||
|
||
string PollingDataConnString { get; } | ||
|
||
IList<long> Identities { get; } | ||
|
||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
PollingEngine/Implementations/SteamPoller/Settings/SteamPollerSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace SteamPoller | ||
{ | ||
public class SteamPollerSettings : ISteamPollerSettings | ||
{ | ||
public SteamPollerSettings() | ||
{ | ||
Identities = new List<long>(); | ||
} | ||
|
||
public string SteamApiKey { get; set; } | ||
|
||
public string PollingDataConnString { get; set; } | ||
|
||
public IList<long> Identities { get; set; } | ||
} | ||
} |
Oops, something went wrong.