public override void wsc(int i, int h, MappedOutStream @out) { graph.Node[] d = ((P0)owner).Data; SetType <graph.Node> type = (SetType <graph.Node>) this.type.cast <graph.Node, System.Object>(); for (; i != h; i++) { System.Collections.Generic.HashSet <graph.Node> x = d[i].edges; int size = null == x ? 0 : x.Count; if (0 == size) { @out.i8((sbyte)0); } else { @out.v64(size); foreach (graph.Node e in x) { graph.Node v = e; if (null == v) { @out.i8((sbyte)0); } else { @out.v64(v.SkillID); } } }; } }
public override int GetHashCode() { var hashCode = -1823152004; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DisplayName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ShortName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StringId); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + SetType.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Image); hashCode = hashCode * -1521134295 + MinLevel.GetHashCode(); hashCode = hashCode * -1521134295 + MaxLevel.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <int[]> .Default.GetHashCode(Enhancements); hashCode = hashCode * -1521134295 + EqualityComparer <Bonus[]> .Default.GetHashCode(Bonuses); hashCode = hashCode * -1521134295 + EqualityComparer <SpecialBonus[]> .Default.GetHashCode(SpecialBonuses); return(hashCode); }
private void ProcessSetOperation() { SetType type = SetType.None; if (Tokenizer.TokenEquals(Constants.Union)) { type = SetType.Union; if (Tokenizer.TokenEquals(Constants.All)) { type = SetType.UnionAll; } } if (Tokenizer.TokenEquals(Constants.Except)) { type = SetType.Except; } if (Tokenizer.TokenEquals(Constants.Intersect)) { type = SetType.Intersect; } if (type == SetType.None) { return; } _statement.SetOperation = new SetOperation() { Type = type }; Tokenizer.ExpectToken(Constants.Select); _statement.SetOperation.Statement = new SelectStatementParser(Tokenizer).Execute(); }
public override void wsc(int i, int h, MappedOutStream @out) { container.Container[] d = ((P0)owner).Data; SetType <container.SomethingElse> type = (SetType <container.SomethingElse>) this.type.cast <container.SomethingElse, System.Object>(); for (; i != h; i++) { System.Collections.Generic.HashSet <container.SomethingElse> x = d[i].someSet; int size = null == x ? 0 : x.Count; if (0 == size) { @out.i8((sbyte)0); } else { @out.v64(size); foreach (container.SomethingElse e in x) { container.SomethingElse v = e; if (null == v) { @out.i8((sbyte)0); } else { @out.v64(v.SkillID); } } }; } }
public override void osc(int i, int h) { SetType <container.SomethingElse> type = (SetType <container.SomethingElse>) this.type.cast <container.SomethingElse, System.Object>(); container.Container[] d = ((P0)owner.basePool).Data; long result = 0L; for (; i != h; i++) { System.Collections.Generic.HashSet <container.SomethingElse> v = null == d[i].someSet ? null : new System.Collections.Generic.HashSet <container.SomethingElse>(((System.Collections.Generic.HashSet <container.SomethingElse>)d[i].someSet).Cast <container.SomethingElse>()); int size = null == v ? 0 : v.Count; if (0 == size) { result++; } else { result += V64.singleV64Offset(size); foreach (container.SomethingElse x in v) { result += null == x?1:V64.singleV64Offset(x.SkillID); } } } offset += result; }
public override void osc(int i, int h) { SetType <System.Int64> type = (SetType <System.Int64>) this.type.cast <System.Int64, System.Object>(); container.Container[] d = ((P0)owner.basePool).Data; long result = 0L; for (; i != h; i++) { System.Collections.Generic.HashSet <System.Int64> v = null == d[i].s ? null : new System.Collections.Generic.HashSet <System.Int64>(((System.Collections.Generic.HashSet <System.Int64>)d[i].s).Cast <long>()); int size = null == v ? 0 : v.Count; if (0 == size) { result++; } else { result += V64.singleV64Offset(size); foreach (long x in v) { result += V64.singleV64Offset(x); } } } offset += result; }
public Field(Battle battle, Renderer renderer, Sound sound, SetType setType) : base(battle, renderer, sound) { this.setType = setType; position = Vector3.Zero; if (setType == SetType.BACK) { scale = 12f; } SetBaseVertices(); SetTextureCoordinate(); VerticesSet(Billboard.NONE); effect.Parameters["Value"].SetValue(0f); if (setType == SetType.FRONT) { RGB = new Vector3(1f, 1f, 1f); } else if (setType == SetType.BACK) { RGB = new Vector3(0.9f, 0.9f, 0.9f); } effect.Parameters["RGB"].SetValue(RGB); }
public void FromXmlItems(XElement a) { try { switch (a.Attribute("category").Value) { case "armor": piece = SetType.armor; break; case "boots": piece = SetType.boots; break; case "gloves": piece = SetType.gloves; break; case "pants": piece = SetType.pants; break; default: piece = SetType.armor; break; } price = int.Parse(a.Attribute("price").Value); slotNum = int.Parse(a.Attribute("enhancement_slots").Value); equipTemplate = a.Attribute("equip_template").Value; unlocalizedName = a.Attribute("localisation_key_name").Value; iconName = a.Attribute("icon_path").Value; string[] tmp = a.Element("tags").Value.Split(' '); throw new NotImplementedException(); //tageket beolvasni! } catch (Exception) {} }
public FigureSet(SetType type, int palletId) { Type = type; PalletId = palletId; Sets = new Dictionary <int, Set>(); }
public static bool IsFlagsSet(ObjectAccessId accessObject, RightsFlags[] flags,SetType setType=SetType.Any) { if (LoggedUser == null) throw new Exception("Invalid user!"); if (LoggedUser.IsAdmin) return true; switch (setType) { case SetType.All: if (flags.Select(flag => IsFlagSet(accessObject, flag)).All(result => result)) { return true; } break; case SetType.Any: if (flags.Select(flag => IsFlagSet(accessObject, flag)).Any(result => result)) { return true; } break; default: throw new ArgumentOutOfRangeException("setType"); } return false; }
/// <summary> /// 取得空的遊戲內套裝 /// </summary> /// <returns></returns> public MeatBallSet GetSetObject(SetType _setName) { MeatBallSet set = null; //確認資料池中是否已經有該套裝 if (dataPool.ContainsKey(_setName)) { //確認散件是否在使用中 for (int i = 0; i < objectPool[_setName].Count; i++) { if (objectPool[_setName][i].IsPartUsing) { continue; } //如果沒有任何一個在使用中的話在初始化函式後直接回傳 objectPool[_setName][i].ReuseAllParts(); return(objectPool[_setName][i]); } } set = GameObject.Instantiate(GetSet(_setName)); set.FindPartsSection(); set.InstantiateParts(); set.ReuseAllParts(); objectPool[_setName].Add(set); return(set); }
public FigureSet(SetType type, int palletId) { this.Type = type; this.PalletId = palletId; this._sets = new Dictionary <int, Set>(); }
public static string[] GetWallLayerNames(SetType setType = SetType.None) { switch (setType) { case SetType.WallOnFloor: case SetType.Wall: { return(new string[] { Enum_Layer.Wall.ToString(), Enum_Layer.LeftWall.ToString(), Enum_Layer.RightWall.ToString(), }); } case SetType.Floor: { return(new string[] { Enum_Layer.FloorWall.ToString(), }); } default: { return(new string[] { Enum_Layer.Wall.ToString(), Enum_Layer.FloorWall.ToString(), Enum_Layer.LeftWall.ToString(), Enum_Layer.RightWall.ToString(), }); } } }
public override int GetHashCode() { var hashCode = 1316660549; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DisplayName); hashCode = hashCode * -1521134295 + Archetype.GetHashCode(); hashCode = hashCode * -1521134295 + SetType.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ImageName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FullName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SetName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(SubName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ClassType); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TrunkSet); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LinkSecondary); hashCode = hashCode * -1521134295 + EqualityComparer <MutuallyExclusiveGroup[]> .Default.GetHashCode(MutuallyExclusiveGroups); return(hashCode); }
public static Settable GetSettable(this SetType type) { Settable s; SettableList.TryGetValue(type, out s); return(s); }
/// <summary> /// 对节点赋值(此方法会忽略hidden隐藏域,隐藏节点赋值请用其它重载方法) /// </summary> /// <param name="idOrName"></param> /// <param name="value"></param> public void Set(string idOrName, string value) { XmlNode node = Get(idOrName); if (node != null) { SetType setType = SetType.InnerXml; switch (node.Name) { case "input": switch (GetAttrValue(node, "type")) { case "hidden": return; //此方法不对隐藏域处理。 case "checkbox": setType = SetType.Checked; break; case "image": setType = SetType.Src; break; case "radio": //情况复杂一点 XmlNodeList nodeList = GetList("input", "type", "radio"); for (int i = 0; i < nodeList.Count; i++) { RemoveAttr(nodeList[i], "checked"); if (GetAttrValue(nodeList[i], "value") == value) { node = nodeList[i]; } } setType = SetType.Checked; break; default: setType = SetType.Value; break; } break; case "select": setType = SetType.Select; break; case "a": setType = SetType.Href; break; case "img": setType = SetType.Src; break; } //try //{ Set(node, setType, value); //} //catch (Exception err) //{ // throw; //} } }
public Set(DateTime date, string name, string code, SetType type, string notes) { ReleaseDate = date; Name = name; Code = code; Type = type; Notes = notes; }
private static byte GetDecreasedRepCount( SetType setType, UserSettings userSettings, byte targetRepsLastTime, byte actualRepsLastTime) { throw new NotImplementedException(); }
public Part(int id, SetType setType, bool colorable, int index, int colorIndex) { this.Id = id; this.SetType = setType; this.Colorable = colorable; this.Index = index; this.ColorIndex = colorIndex; }
public Part(int id, SetType setType, bool colorable, int index, int colorIndex) { Id = id; SetType = setType; Colorable = colorable; Index = index; ColorIndex = colorIndex; }
public ItemInfo(DataRow Row) { ItemIndex = Row["Item Index"] is DBNull ? -1 : (int)Row["Item Index"]; ItemName = Row["Item Name"] is DBNull ? string.Empty : Row["Item Name"].ToString(); ItemType = (MirItemType)(Row["Item Type"] is DBNull ? 0 : (int)Row["Item Type"]); RequiredType = (MirRequiredType)(Row["Required Type"] is DBNull ? 0 : (int)Row["Required Type"]); RequiredClass = (MirRequiredClass)(Row["Required Class"] is DBNull ? 0 : (int)Row["Required Class"]); RequiredAmount = Row["Required Amount"] is DBNull ? 0 : (int)Row["Required Amount"]; Durability = Row["Durability"] is DBNull ? 0 : (int)Row["Durability"]; StackSize = Row["Stack Size"] is DBNull ? 0 : (int)Row["Stack Size"]; Price = Row["Price"] is DBNull ? 0 : (int)Row["Price"]; Image = Row["Image Index"] is DBNull ? -1 : (int)Row["Image Index"]; Shape = Row["Shape"] is DBNull ? 0 : (int)Row["Shape"]; MinAC = Row["Min AC"] is DBNull ? 0 : (int)Row["Min AC"]; MaxAC = Row["Max AC"] is DBNull ? 0 : (int)Row["Max AC"]; MinMAC = Row["Min MAC"] is DBNull ? 0 : (int)Row["Min MAC"]; MaxMAC = Row["Max MAC"] is DBNull ? 0 : (int)Row["Max MAC"]; MinDC = Row["Min DC"] is DBNull ? 0 : (int)Row["Min DC"]; MaxDC = Row["Max DC"] is DBNull ? 0 : (int)Row["Max DC"]; MinMC = Row["Min MC"] is DBNull ? 0 : (int)Row["Min MC"]; MaxMC = Row["Max MC"] is DBNull ? 0 : (int)Row["Max MC"]; MinSC = Row["Min SC"] is DBNull ? 0 : (int)Row["Min SC"]; MaxSC = Row["Max SC"] is DBNull ? 0 : (int)Row["Max SC"]; Health = Row["Health"] is DBNull ? 0 : (int)Row["Health"]; Mana = Row["Mana"] is DBNull ? 0 : (int)Row["Mana"]; Weight = Row["Weight"] is DBNull ? 0 : (int)Row["Weight"]; Light = Row["Light"] is DBNull ? 0 : (int)Row["Light"]; Accuracy = Row["Accuracy"] is DBNull ? 0 : (int)Row["Accuracy"]; Agility = Row["Agility"] is DBNull ? 0 : (int)Row["Agility"]; MagicResist = Row["Magic Resist"] is DBNull ? 0 : (int)Row["Magic Resist"]; PoisonResist = Row["Poison Resist"] is DBNull ? 0 : (int)Row["Poison Resist"]; HealthRegen = Row["Health Regen"] is DBNull ? 0 : (int)Row["Health Regen"]; ManaRegen = Row["Mana Regen"] is DBNull ? 0 : (int)Row["Mana Regen"]; Holy = Row["Holy"] is DBNull ? 0 : (int)Row["Holy"]; BodyWeight = Row["Body Weight"] is DBNull ? 0 : (int)Row["Body Weight"]; HandWeight = Row["Hand Weight"] is DBNull ? 0 : (int)Row["Hand Weight"]; BagWeight = Row["Bag Weight"] is DBNull ? 0 : (int)Row["Bag Weight"]; Luck = (Row["Luck"] is DBNull ? 0 : (int)Row["Luck"]); AttackSpeed = (Row["Attack Speed"] is DBNull ? 0 : (int)Row["Attack Speed"]); Set = (SetType)(Row["Set"] is DBNull ? 0 : (int)Row["Set"]); CanBreak = Row["Can Break"] is DBNull ? false : (bool)Row["Can Break"]; CanRepair = Row["Can Repair"] is DBNull ? false : (bool)Row["Can Repair"]; CanSRepair = Row["Can SRepair"] is DBNull ? false : (bool)Row["Can SRepair"]; CanDrop = Row["Can Drop"] is DBNull ? false : (bool)Row["Can Drop"]; CanTrade = Row["Can Trade"] is DBNull ? false : (bool)Row["Can Trade"]; CanStore = Row["Can Store"] is DBNull ? false : (bool)Row["Can Store"]; CanSell = Row["Can Sell"] is DBNull ? false : (bool)Row["Can Sell"]; StartItem = Row["Start Item"] is DBNull ? false : (bool)Row["Start Item"]; }
public Charset(SetType type, bool neg) { _type = type; if (neg) { _type |= SetType.Not; } _property = null; }
public ItemInfo(BinaryReader BReader) { ItemIndex = BReader.ReadInt32(); ItemName = BReader.ReadString(); ItemType = (MirItemType)BReader.ReadByte(); RequiredType = (MirRequiredType)BReader.ReadByte(); RequiredClass = (MirRequiredClass)BReader.ReadByte(); RequiredAmount = BReader.ReadInt32(); Durability = BReader.ReadInt32(); StackSize = BReader.ReadInt32(); Price = BReader.ReadInt32(); Image = BReader.ReadInt32(); Shape = BReader.ReadInt32(); MinAC = BReader.ReadInt32(); MaxAC = BReader.ReadInt32(); MinMAC = BReader.ReadInt32(); MaxMAC = BReader.ReadInt32(); MinDC = BReader.ReadInt32(); MaxDC = BReader.ReadInt32(); MinMC = BReader.ReadInt32(); MaxMC = BReader.ReadInt32(); MinSC = BReader.ReadInt32(); MaxSC = BReader.ReadInt32(); Health = BReader.ReadInt32(); Mana = BReader.ReadInt32(); Weight = BReader.ReadInt32(); Light = BReader.ReadInt32(); Accuracy = BReader.ReadInt32(); Agility = BReader.ReadInt32(); MagicResist = BReader.ReadInt32(); PoisonResist = BReader.ReadInt32(); HealthRegen = BReader.ReadInt32(); ManaRegen = BReader.ReadInt32(); Holy = BReader.ReadInt32(); BodyWeight = BReader.ReadInt32(); HandWeight = BReader.ReadInt32(); BagWeight = BReader.ReadInt32(); Luck = BReader.ReadInt32(); AttackSpeed = BReader.ReadInt32(); Set = (SetType)BReader.ReadByte(); CanBreak = BReader.ReadBoolean(); CanRepair = BReader.ReadBoolean(); CanSRepair = BReader.ReadBoolean(); CanDrop = BReader.ReadBoolean(); CanTrade = BReader.ReadBoolean(); CanStore = BReader.ReadBoolean(); CanSell = BReader.ReadBoolean(); }
public static SetType[] ToSetTypes(this string[] val) { SetType[] ret = new SetType[val.Length]; for (int i = 0; i < val.Length; i++) { ret[i] = val[i].Parse <SetType>(); } return(ret); }
private static bool ActualRepsSignificantlyLessThanTarget( SetType setType, byte targetReps, byte actualReps) { //TODO: Allow this to be configurable //TODO: Modify for different set types return(targetReps - actualReps >= 10); }
public Charset(string property, bool neg) { _type = SetType.Property; if (neg) { _type |= SetType.Not; } _property = property; }
internal void ValidateVariableListCounts(IO.ICanThrowReadExceptionsWithExtraDetails readExceptionThrower) { var set = SetType.ToString(); ProtoData.Traits[MegaloScriptVariableType.Numeric].ValidateListCount(Numerics, set + ".Numerics", readExceptionThrower); ProtoData.Traits[MegaloScriptVariableType.Timer].ValidateListCount(Timers, set + ".Timers", readExceptionThrower); ProtoData.Traits[MegaloScriptVariableType.Team].ValidateListCount(Teams, set + ".Teams", readExceptionThrower); ProtoData.Traits[MegaloScriptVariableType.Player].ValidateListCount(Players, set + ".Players", readExceptionThrower); ProtoData.Traits[MegaloScriptVariableType.Object].ValidateListCount(Objects, set + ".Objects", readExceptionThrower); }
public override string ToString() { var properties = new Dictionary <string, string> { { "SetType", SetType.ToString() }, { "FileGlobs", StringifyList(FileGlobs) } }; return(StringifyValues(GetType().ToString(), properties)); }
public override bool Equals(object obj) { var other = obj as SetNode; if (other == null) { return(false); } return(SetType.Equals(other.SetType) && ListsAreEqual(FileGlobs, other.FileGlobs)); }
bool getSetTypeCheckState(SetType type) { foreach (CheckedListBoxItem item in cmbSetTypes.Properties.Items) { if ((SetType)item.Value == type) { return(item.CheckState == CheckState.Checked); } } return(false); }
private static bool ActualRepsLessThanTarget( SetType setType, byte targetReps, byte actualReps) { //TODO: Allow this to be configurable //TODO: Modify for different set types byte difference = (byte)(targetReps - actualReps); return(difference < 10 && difference >= 6); }
/* LOGIC * 1. Randomly select one node in the graph. * 2. Randonly select the second node from the first node's connections. * 3. Compute all the features for this pair of connected nodes. * 4. Randomly select one node from the nodes that are not connected to * the first node. * 5. Compute all the features for the selected pair of disconnected nodes. * 6. Repeat 5000 times. * Note: when selecting a pair, make sure that it is not already in the training set. */ public static void CreateTrainingAndTestSets(string pathDataDir, SetType trainingSetType, SetType testingSetType, int trainingSetSize, int testingSetSize, int testingDataAmount) { Console.WriteLine("Starting creation of training and testing subsets . . ."); FeaturesExtractor featuresExtractor = new FeaturesExtractor(pathDataDir); featuresExtractor.LoadCharacterCharactersData(); featuresExtractor.LoadCharacterComicsData(); featuresExtractor.LoadCharacterSeriesData(); HashSet<string> usedExamples = new HashSet<string>(); HashSet<string> usedNodes = new HashSet<string>(); // Training data Console.WriteLine("Creating training subset . . ."); Console.WriteLine(String.Format("Training set type: {0}", trainingSetType)); switch (trainingSetType) { case SetType.Balanced: CreateAndSaveRandomBalancedSubset(FileManager.GetPathResultTrainingSet(pathDataDir, trainingSetType), featuresExtractor, usedExamples, usedNodes, trainingSetSize); break; case SetType.Proportional: CreateAndSaveRandomProportionalSubset(FileManager.GetPathResultTrainingSet(pathDataDir, trainingSetType), featuresExtractor, usedExamples, usedNodes, trainingSetSize); break; } // Testing data Console.WriteLine("Creating testing subset . . ."); Console.WriteLine(String.Format("Testing set type: {0}", testingSetType)); switch (testingSetType) { case SetType.Balanced: CreateAndSaveRandomBalancedSubset(FileManager.GetPathResultTestSet(pathDataDir, testingSetType), featuresExtractor, usedExamples, usedNodes, testingSetSize); break; case SetType.Proportional: CreateAndSaveRandomProportionalSubset(FileManager.GetPathResultTestSet(pathDataDir, testingSetType), featuresExtractor, usedExamples, usedNodes, testingSetSize); break; case SetType.Nodes: CreateAndSaveRandomNodesSubset(FileManager.GetPathResultTestSet(pathDataDir, testingSetType), featuresExtractor, usedNodes, testingSetSize, testingDataAmount); break; } Console.WriteLine("Finished creation of training and testing subsets."); }
public virtual bool SetQuestionByChannelIdByCode(SetType set_type, Question obj) { return act.SetQuestionByChannelIdByCode(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetProfileQuestionByQuestionIdByProfileId(SetType set_type, ProfileQuestion obj) { return act.SetProfileQuestionByQuestionIdByProfileId(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetAppByUuid(SetType set_type, App obj) { return act.SetAppByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual string ConvertSetTypeToString(SetType set_type) { if(set_type == SetType.UPDATE_ONLY) return "updateonly"; else if(set_type == SetType.INSERT_ONLY) return "insertonly"; else return "full"; }
public virtual bool SetVideoByUrl(SetType set_type, Video obj) { return act.SetVideoByUrl(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetSiteByCode(SetType set_type, Site obj) { return act.SetSiteByCode(ConvertSetTypeToString(set_type), obj); }
public void SetSetType(SetType value) { this.mType = value; }
public virtual bool SetProfileRewardPointsByUuid(SetType set_type, ProfileRewardPoints obj) { return act.SetProfileRewardPointsByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetMessageByUuid(SetType set_type, Message obj) { return act.SetMessageByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetEventInfoByUuid(SetType set_type, EventInfo obj) { return act.SetEventInfoByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetEventCategoryAssocByUuid(SetType set_type, EventCategoryAssoc obj) { return act.SetEventCategoryAssocByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetContentItemTypeByUuid(SetType set_type, ContentItemType obj) { return act.SetContentItemTypeByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetChannelByUuid(SetType set_type, Channel obj) { return act.SetChannelByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetQuestionByUuid(SetType set_type, Question obj) { return act.SetQuestionByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetSiteAppByAppIdBySiteId(SetType set_type, SiteApp obj) { return act.SetSiteAppByAppIdBySiteId(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetPhotoByUuid(SetType set_type, Photo obj) { return act.SetPhotoByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetSiteTypeByUuid(SetType set_type, SiteType obj) { return act.SetSiteTypeByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetProfileAppByProfileIdByAppId(SetType set_type, ProfileApp obj) { return act.SetProfileAppByProfileIdByAppId(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetVideoByUuidByExternalId(SetType set_type, Video obj) { return act.SetVideoByUuidByExternalId(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetProfileChannelByChannelIdByProfileId(SetType set_type, ProfileChannel obj) { return act.SetProfileChannelByChannelIdByProfileId(ConvertSetTypeToString(set_type), obj); }
// // /// <summary> /// This function compares pMetricColl with the current one. If pMetricColl has more entries apart from the one /// in the current list with which some of its entries are identical, setType is set as SUPERSET. /// </summary> /// <param name="metricColl"></param> /// <param name="setType"></param> /// <returns></returns> public bool CompareMetricBlock( MetricBlock metricColl, ref SetType setType) { if( null == metricColl ) return false; // if both have null entry, implies default metric Block for both of them // and it already exists in the list. Return TRUE // If only one of the blocks is empty, return FALSE - they cannot be merged // because the other block may have customized GUID_X or GUID_Y. if (null == GetMetricEntryList()) return (metricColl.GetMetricEntryList() == null); if (null == metricColl.GetMetricEntryList()) return false; // Else compare the entries bool fTagFound = false; uint cbLhs = this.MetricEntryCount; // No of entries in this block uint cbRhs = metricColl.MetricEntryCount; // No of entries in the block to be compared MetricEntry outside, inside; if( metricColl.MetricEntryCount <= MetricEntryCount ) { outside = metricColl.GetMetricEntryList(); inside = GetMetricEntryList(); } else { inside = metricColl.GetMetricEntryList(); outside = GetMetricEntryList(); setType = SetType.SuperSet; } // For each entry in metricColl, search for the same in this Block. // If it is found, continue with the next entry of smaller Block. while( null != outside ) { fTagFound = false; // Always start at the begining of the larger block MetricEntry temp = inside; while( null != temp ) { if( outside.Compare(temp) ) { fTagFound = true; break; } else temp = temp.Next; } if( !fTagFound ) return false; // Found the entry; Continue with the next entry in the outside block outside = outside.Next; } return true; }
public virtual bool SetProfileOrgByUuid(SetType set_type, ProfileOrg obj) { return act.SetProfileOrgByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetOfferCategoryTreeByUuid(SetType set_type, OfferCategoryTree obj) { return act.SetOfferCategoryTreeByUuid(ConvertSetTypeToString(set_type), obj); }
public virtual bool SetRewardConditionTypeByUuid(SetType set_type, RewardConditionType obj) { return act.SetRewardConditionTypeByUuid(ConvertSetTypeToString(set_type), obj); }
public void I(IEnumerable<int> series, SetType type) { StringBuilder sb = new StringBuilder(); foreach(int ion in series) { if(type == SetType.ArgLine) { UserAction = true; UserAction = false; } sb.Append(ion); sb.Append(','); } if(sb.Length > 1) { sb.Remove(sb.Length - 1, 1); } ArgumentLine.IonSeries = sb.ToString(); }
public virtual bool SetOfferGameLocationByUuid(SetType set_type, OfferGameLocation obj) { return act.SetOfferGameLocationByUuid(ConvertSetTypeToString(set_type), obj); }
internal AuthorizationSetDefinition(SetType setType) { _setType = setType; }
public virtual bool SetOrgSiteByOrgIdBySiteId(SetType set_type, OrgSite obj) { return act.SetOrgSiteByOrgIdBySiteId(ConvertSetTypeToString(set_type), obj); }