Renamed project.

This commit is contained in:
Patrick Fic
2020-05-27 08:59:48 -07:00
parent 75739656c4
commit a8a8998250
44 changed files with 106 additions and 101 deletions

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class AppMetaData
{

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class ApplicationExceptionHandler
{

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Firebase.Auth;
using System.Timers;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class Auth
{
@@ -25,9 +25,8 @@ namespace BodyshopUploader.Utils
{
authlink = await ap.SignInWithEmailAndPasswordAsync(Username, Password);
authlink.FirebaseAuthRefreshed += Authlink_FirebaseAuthRefreshed;
logger.Trace("Firebase Auth Token {0}.", authlink.FirebaseToken);
logger.Trace("Firebase Refresh Token {0}.", authlink.RefreshToken);
logger.Trace("Firebase Auth Token expires in {0} seconds.", authlink.ExpiresIn);
tokenTimer.Interval = (authlink.ExpiresIn - 600) * 1000; //Set the token to refresh 10 minutes before it has to.
logger.Trace("Refresh timer interval set to {0}ms", (authlink.ExpiresIn - 600) * 1000);
@@ -81,7 +80,7 @@ namespace BodyshopUploader.Utils
//Gotta do some stuff now that i got a new token!
//Maybe the token auto refreshes?
logger.Info("Timer Old Token {0}", authlink.FirebaseToken);
authlink = await ap.SignInWithEmailAndPasswordAsync(U, P);
authlink = await authlink.GetFreshAuthAsync();
logger.Info("new Token {0}", authlink.FirebaseToken);
tokenTimer.Stop();
tokenTimer.Interval = (authlink.ExpiresIn - 600) * 1000; //Set the token to refresh 10 minutes before it has to.

View File

@@ -3,7 +3,7 @@ using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace BodyshopUploader
namespace BodyshopPartner
{
public class BaseModel : INotifyPropertyChanged
{

View File

@@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace BodyshopUploader
namespace BodyshopPartner
{
public abstract class BaseViewModel : INotifyPropertyChanged
{

View File

@@ -4,9 +4,9 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BodyshopUploader.Models;
using BodyshopPartner.Models;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public class CIECAMonitor : FileSystemWatcher
{

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF;
using Newtonsoft.Json.Linq;
namespace BodyshopUploader.Utils.Decoder
namespace BodyshopPartner.Utils.Decoder
{
class EstimateDecoder
{

View File

@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class GraphQL
{

View File

@@ -1,9 +1,9 @@
<Window x:Class="BodyshopUploader.Utils.Growls.GrowlNotification"
<Window x:Class="BodyshopPartner.Utils.Growls.GrowlNotification"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:BodyshopUploader.Utils.Growls"
xmlns:local="clr-namespace:BodyshopPartner.Utils.Growls"
mc:Ignorable="d"
SizeToContent="WidthAndHeight"
AllowsTransparency="True"
@@ -11,7 +11,7 @@
ShowInTaskbar="False"
Topmost="True"
UseLayoutRounding="True"
Title="BodyshopUploader Notification"
Title="BodyshopPartner Notification"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"

View File

@@ -15,7 +15,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace BodyshopUploader.Utils.Growls
namespace BodyshopPartner.Utils.Growls
{
public partial class GrowlNotification
{

View File

@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils.Growls
namespace BodyshopPartner.Utils.Growls
{
public class Notification : INotifyPropertyChanged
{

View File

@@ -5,13 +5,13 @@ using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using BodyshopUploader.Utils;
using BodyshopUploader.Models;
using BodyshopUploader.Utils.Growls;
using BodyshopPartner.Utils;
using BodyshopPartner.Models;
using BodyshopPartner.Utils.Growls;
using GraphQL.Common.Request;
using Newtonsoft.Json.Linq;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class JobProcessingQueue
{

View File

@@ -7,7 +7,7 @@ using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
class JsonPathConverter : JsonConverter
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class JsonExtensions
{

View File

@@ -6,7 +6,7 @@ using System.Security;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class LoginHelpers
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils.Queries
namespace BodyshopPartner.Utils.Queries
{
class JobsQueries
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils.Queries
namespace BodyshopPartner.Utils.Queries
{
public static class VehicleQueries
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Windows.Input;
namespace BodyshopUploader
namespace BodyshopPartner
{
public class RelayCommand : ICommand
{

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public class OpenMainWindowCommand : ICommand
{

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public class BoolVisibilityConverter : IValueConverter
{

View File

@@ -8,7 +8,7 @@ using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils
namespace BodyshopPartner.Utils
{
public static class UpdateHandler
{