public LocalUser(AbstractLogger logger, IDisplayName displayName, string swid, IList <IInternalFriend> friends, AgeBandType ageBandType, IDatabase database, IUserDatabase userDatabase, IInternalRegistrationProfile registrationProfile, IMixWebCallFactory mixWebCallFactory, IGuestControllerClient guestControllerClient, INotificationQueue notificationQueue, IEncryptor encryptor, IEpochTime epochTime) { DisplayName = displayName; FirstName = registrationProfile.FirstName; Swid = swid; Id = swid; this.logger = logger; this.registrationProfile = registrationProfile; this.mixWebCallFactory = mixWebCallFactory; this.friends = friends; this.ageBandType = ageBandType; this.database = database; this.userDatabase = userDatabase; incomingFriendInvitations = new List <IInternalIncomingFriendInvitation>(); outgoingFriendInvitations = new List <IInternalOutgoingFriendInvitation>(); oldInvitationIds = new List <long>(); unidentifiedUsers = new List <IInternalUnidentifiedUser>(); this.guestControllerClient = guestControllerClient; this.notificationQueue = notificationQueue; this.encryptor = encryptor; this.epochTime = epochTime; guestControllerClient.OnLegalMarketingUpdateRequired += delegate(object sender, AbstractLegalMarketingUpdateRequiredEventArgs e) { this.OnLegalMarketingUpdateRequired(this, e); }; }
bool ESRI.ArcGIS.esriSystem.IClone.IsEqual(IClone other) { bool angle = false; ILogoMarkerSymbol logoMarkerSymbol = null; ILogoMarkerSymbol logoMarkerSymbol1 = null; IMarkerSymbol markerSymbol = null; IMarkerSymbol markerSymbol1 = null; ISymbol symbol = null; ISymbol symbol1 = null; IDisplayName displayName = null; IDisplayName displayName1 = null; ISymbolRotation symbolRotation = null; ISymbolRotation symbolRotation1 = null; IMapLevel mapLevel = null; IMapLevel mapLevel1 = null; if (other != null) { if (other is ILogoMarkerSymbol) { logoMarkerSymbol = other as ILogoMarkerSymbol; logoMarkerSymbol1 = this; System.Drawing.Color color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorBorder.RGB)); angle = angle & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorBorder.RGB))); color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorLeft.RGB)); angle = angle & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorLeft.RGB))); color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorRight.RGB)); angle = angle & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorRight.RGB))); color = ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol1.ColorTop.RGB)); angle = angle & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(logoMarkerSymbol.ColorTop.RGB))); markerSymbol = other as IMarkerSymbol; markerSymbol1 = this; angle = angle & markerSymbol1.Angle == markerSymbol.Angle; color = ColorTranslator.FromOle(Convert.ToInt32(markerSymbol1.Color.RGB)); angle = angle & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(markerSymbol.Color.RGB))); angle = angle & markerSymbol1.Size == markerSymbol.Size; angle = angle & markerSymbol1.XOffset == markerSymbol.XOffset; angle = angle & markerSymbol1.YOffset == markerSymbol.YOffset; symbol = other as ISymbol; symbol1 = this; angle = angle & symbol1.ROP2 == symbol.ROP2; displayName = other as IDisplayName; displayName1 = this; angle = angle & (displayName1.NameString == displayName.NameString); symbolRotation = other as ISymbolRotation; symbolRotation1 = this; angle = angle & symbolRotation1.RotateWithTransform == symbolRotation.RotateWithTransform; mapLevel = other as IMapLevel; mapLevel1 = this; angle = angle & mapLevel1.MapLevel == mapLevel.MapLevel; } } return(angle); }
public Friend(string swid, bool isTrusted, IDisplayName displayName, string firstName, IUserDatabase userDatabase) { this.userDatabase = userDatabase; Swid = swid; IsTrusted = isTrusted; DisplayName = displayName; FirstName = firstName; }
public LinkedUser(string username, string firstName, string lastName, IDisplayName displayName, string email, string parentEmail, AgeBandType ageBand, DateTime?dateOfBirth, string swid) { Username = username; FirstName = firstName; LastName = lastName; DisplayName = displayName; Email = email; ParentEmail = parentEmail; AgeBand = ageBand; DateOfBirth = dateOfBirth; Swid = swid; }
bool ESRI.ArcGIS.esriSystem.IClone.IsEqual(IClone other) { bool width = false; LabelSymbol labelSymbol = null; LabelSymbol labelSymbol1 = null; ILineSymbol lineSymbol = null; ILineSymbol lineSymbol1 = null; ISymbol symbol = null; ISymbol symbol1 = null; IDisplayName displayName = null; IDisplayName displayName1 = null; ISymbolRotation symbolRotation = null; ISymbolRotation symbolRotation1 = null; IMapLevel mapLevel = null; IMapLevel mapLevel1 = null; if (other != null) { if (other is LabelSymbol) { labelSymbol = other as LabelSymbol; labelSymbol1 = this; lineSymbol = other as ILineSymbol; lineSymbol1 = this; System.Drawing.Color color = ColorTranslator.FromOle(Convert.ToInt32(lineSymbol1.Color.RGB)); width = width & color.Equals(ColorTranslator.FromOle(Convert.ToInt32(lineSymbol.Color.RGB))); width = width & lineSymbol1.Width == lineSymbol.Width; symbol = other as ISymbol; symbol1 = this; width = width & symbol1.ROP2 == symbol.ROP2; displayName = other as IDisplayName; displayName1 = this; width = width & (displayName1.NameString == displayName.NameString); symbolRotation = other as ISymbolRotation; symbolRotation1 = this; width = width & symbolRotation1.RotateWithTransform == symbolRotation.RotateWithTransform; mapLevel = other as IMapLevel; mapLevel1 = this; width = width & mapLevel1.MapLevel == mapLevel.MapLevel; } } return(width); }
public static void WriteIDisplayName(IDisplayName entity) { Console.WriteLine(entity.DisplayName); }
public UnidentifiedUser(IDisplayName displayName, string firstName, IUserDatabase userDatabase) { this.userDatabase = userDatabase; DisplayName = displayName; FirstName = firstName; }
public ScenarioListItem(IDisplayName nameProvider) : this(nameProvider?.GetDisplayName(), nameProvider) { }
public static void DecryptEncryptedData(IEncryptedData encryptedData, byte[] encryptionKey, IDisplayName entity) { if (string.IsNullOrEmpty(encryptedData.EncryptedData)) { return; } try { var jData = CryptoUtils.DecryptAesV1(encryptedData.EncryptedData.Base64UrlDecode(), encryptionKey); var data = JsonUtils.ParseJson <EncryptedData>(jData); entity.DisplayName = data.DisplayName; } catch (Exception e) { Debug.WriteLine(e.Message); } }