diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs index e88929a2..8990b429 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs @@ -150,23 +150,10 @@ private string GetBrowserPlatform() #endif } - private string GetBrowserPath() - { -#if UNITY_EDITOR - return Application.persistentDataPath; -#else - if (XsollaSettings.PackInAppBrowserInBuild) - { - var path = Application.dataPath; - path = System.IO.Directory.GetParent(path).FullName; - return System.IO.Path.Combine(path, ".local-chromium"); - } - else - { - return Application.persistentDataPath; - } -#endif - } + private string GetBrowserPath() + { + return Application.persistentDataPath; + } private void DestroyPreloader() { diff --git a/Assets/Shared/Prefabs/UI/AddFundsView.prefab b/Assets/Shared/Prefabs/UI/AddFundsView.prefab new file mode 100644 index 00000000..c1258126 --- /dev/null +++ b/Assets/Shared/Prefabs/UI/AddFundsView.prefab @@ -0,0 +1,1049 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &866364980483615743 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4520645655098149428} + - component: {fileID: 4088525242005849968} + - component: {fileID: 7666939167601581983} + m_Layer: 5 + m_Name: Text (TMP) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4520645655098149428 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 866364980483615743} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 4956603440870209634} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -48, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &4088525242005849968 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 866364980483615743} + m_CullTransparentMesh: 1 +--- !u!114 &7666939167601581983 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 866364980483615743} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Buy with debit card + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4278190080 + m_fontColor: {r: 0, g: 0, b: 0, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 24 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 1 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &2024917448253358118 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8414601799223199357} + - component: {fileID: 5969575867442293522} + - component: {fileID: 5763835271552326152} + m_Layer: 5 + m_Name: Text (TMP) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8414601799223199357 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2024917448253358118} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 7798443803515428275} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: -0.000030517578} + m_SizeDelta: {x: -48, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &5969575867442293522 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2024917448253358118} + m_CullTransparentMesh: 1 +--- !u!114 &5763835271552326152 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2024917448253358118} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Swap or Bridge Tokens + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 24 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 1 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &2556286783023796943 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3133734374320710578} + - component: {fileID: 346729103312404660} + - component: {fileID: 942264727201900133} + m_Layer: 5 + m_Name: Title + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3133734374320710578 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2556286783023796943} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5464304629124346698} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0, y: -144} + m_SizeDelta: {x: 500, y: 60} + m_Pivot: {x: 0.5, y: 1} +--- !u!222 &346729103312404660 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2556286783023796943} + m_CullTransparentMesh: 1 +--- !u!114 &942264727201900133 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2556286783023796943} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: How would like add funds? + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 36 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &3910282061138255774 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7798443803515428275} + - component: {fileID: 6041054822443761681} + - component: {fileID: 714319158123417206} + - component: {fileID: 4476008866051575491} + - component: {fileID: 1082315832006481771} + m_Layer: 5 + m_Name: Token Button + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7798443803515428275 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3910282061138255774} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 8414601799223199357} + m_Father: {fileID: 5464304629124346698} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 149} + m_SizeDelta: {x: 400, y: 80} + m_Pivot: {x: 0.5, y: 0} +--- !u!222 &6041054822443761681 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3910282061138255774} + m_CullTransparentMesh: 1 +--- !u!114 &714319158123417206 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3910282061138255774} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: a7b4b8207be2c4ad19974afa7ca5cd91, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &4476008866051575491 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3910282061138255774} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 714319158123417206} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &1082315832006481771 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3910282061138255774} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5e87ca911816437f846b3f0d738b485, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Button: {fileID: 4476008866051575491} + m_ButtonSound: 3 +--- !u!1 &5464304629124346709 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5464304629124346698} + - component: {fileID: 5464304629124346697} + - component: {fileID: 5464304629124346696} + - component: {fileID: 5049268175328206359} + m_Layer: 5 + m_Name: AddFundsView + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5464304629124346698 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5464304629124346709} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3133734374320710578} + - {fileID: 7798443803515428275} + - {fileID: 4956603440870209634} + - {fileID: 1165059358673368351} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 4} + m_SizeDelta: {x: 600, y: 650} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &5464304629124346697 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5464304629124346709} + m_CullTransparentMesh: 1 +--- !u!114 &5464304629124346696 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5464304629124346709} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0, b: 0, a: 0.9019608} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &5049268175328206359 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5464304629124346709} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 34f4fd3646f040d99e04107838a59be2, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FiatButton: {fileID: 5497729094643045049} + m_TokenButton: {fileID: 4476008866051575491} + m_CancelButton: {fileID: 3979097821289202964} +--- !u!1 &7087042878566949568 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4956603440870209634} + - component: {fileID: 5348606215282105702} + - component: {fileID: 5635133643696597693} + - component: {fileID: 5497729094643045049} + - component: {fileID: 6015925868416164580} + m_Layer: 5 + m_Name: Fiat Button + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4956603440870209634 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7087042878566949568} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 4520645655098149428} + m_Father: {fileID: 5464304629124346698} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 253} + m_SizeDelta: {x: 400, y: 80} + m_Pivot: {x: 0.5, y: 0} +--- !u!222 &5348606215282105702 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7087042878566949568} + m_CullTransparentMesh: 1 +--- !u!114 &5635133643696597693 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7087042878566949568} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 1198b57600fb24572b5fe15d8b2c6c97, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &5497729094643045049 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7087042878566949568} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 5635133643696597693} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &6015925868416164580 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7087042878566949568} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5e87ca911816437f846b3f0d738b485, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Button: {fileID: 5497729094643045049} + m_ButtonSound: 3 +--- !u!1 &7878030425794005941 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7492764391848221150} + - component: {fileID: 6323699409509504053} + - component: {fileID: 8125654200318486878} + m_Layer: 5 + m_Name: Text (TMP) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7492764391848221150 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7878030425794005941} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1165059358673368351} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -48, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &6323699409509504053 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7878030425794005941} + m_CullTransparentMesh: 1 +--- !u!114 &8125654200318486878 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7878030425794005941} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Cancel + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 24 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 1 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &8532601469463923853 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1165059358673368351} + - component: {fileID: 7365156116509788632} + - component: {fileID: 9206978234246824838} + - component: {fileID: 3979097821289202964} + - component: {fileID: 3846692926941565647} + m_Layer: 5 + m_Name: Cancel Button + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1165059358673368351 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8532601469463923853} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7492764391848221150} + m_Father: {fileID: 5464304629124346698} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 43} + m_SizeDelta: {x: 400, y: 80} + m_Pivot: {x: 0.5, y: 0} +--- !u!222 &7365156116509788632 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8532601469463923853} + m_CullTransparentMesh: 1 +--- !u!114 &9206978234246824838 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8532601469463923853} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: a7b4b8207be2c4ad19974afa7ca5cd91, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &3979097821289202964 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8532601469463923853} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 9206978234246824838} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &3846692926941565647 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8532601469463923853} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5e87ca911816437f846b3f0d738b485, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Button: {fileID: 3979097821289202964} + m_ButtonSound: 3 diff --git a/Assets/Shared/Prefabs/UI/AddFundsView.prefab.meta b/Assets/Shared/Prefabs/UI/AddFundsView.prefab.meta new file mode 100644 index 00000000..7279f09f --- /dev/null +++ b/Assets/Shared/Prefabs/UI/AddFundsView.prefab.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 9703ade02db14aea9329516418991255 +timeCreated: 1727331707 \ No newline at end of file diff --git a/Assets/Shared/Prefabs/UI/InventoryScreen.prefab b/Assets/Shared/Prefabs/UI/InventoryScreen.prefab index 13911a9b..fc2a3720 100644 --- a/Assets/Shared/Prefabs/UI/InventoryScreen.prefab +++ b/Assets/Shared/Prefabs/UI/InventoryScreen.prefab @@ -1911,6 +1911,7 @@ MonoBehaviour: m_AssetObj: {fileID: 9215591978314449373} m_ListParent: {fileID: 3995018089020746221} m_ScrollView: {fileID: 6011150636714096262} + m_AddFunds: {fileID: 0} --- !u!1 &9098808456760454047 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Shared/Prefabs/UIManager.prefab b/Assets/Shared/Prefabs/UIManager.prefab index aca5e98a..bebbea90 100644 --- a/Assets/Shared/Prefabs/UIManager.prefab +++ b/Assets/Shared/Prefabs/UIManager.prefab @@ -481,7 +481,7 @@ PrefabInstance: - target: {fileID: 2418144165573983337, guid: 3c7a51309061d411eb5591ed1fd837f3, type: 3} propertyPath: m_AnchoredPosition.y - value: -16.00003 + value: -16.000061 objectReference: {fileID: 0} - target: {fileID: 2418144165573983337, guid: 3c7a51309061d411eb5591ed1fd837f3, type: 3} @@ -958,6 +958,11 @@ PrefabInstance: propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} + - target: {fileID: 8023114804503649724, guid: 54814bc3b927146708f6d9559a750bed, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0.000061035156 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 54814bc3b927146708f6d9559a750bed, type: 3} --- !u!224 &2404344050907402547 stripped @@ -1196,12 +1201,12 @@ PrefabInstance: - target: {fileID: 864111321475162457, guid: 159a6cc7f4f464a5bbeb1410c075eed1, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 1.1583769 objectReference: {fileID: 0} - target: {fileID: 864111321475162457, guid: 159a6cc7f4f464a5bbeb1410c075eed1, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -10.420235 objectReference: {fileID: 0} - target: {fileID: 864111321475162457, guid: 159a6cc7f4f464a5bbeb1410c075eed1, type: 3} @@ -1363,6 +1368,36 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 5280667181393737275} m_Modifications: + - target: {fileID: 117500772836566267, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 117500772836566267, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 117500772836566267, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 83.2 + objectReference: {fileID: 0} + - target: {fileID: 117500772836566267, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 73.6 + objectReference: {fileID: 0} + - target: {fileID: 117500772836566267, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -32 + objectReference: {fileID: 0} + - target: {fileID: 230371171227947349, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 310.58 + objectReference: {fileID: 0} - target: {fileID: 248453386901555424, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y @@ -1376,377 +1411,1162 @@ PrefabInstance: - target: {fileID: 248453386901555424, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1409.4653 + value: 1007.743 objectReference: {fileID: 0} - target: {fileID: 248453386901555424, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 260 + value: 288.82 objectReference: {fileID: 0} - target: {fileID: 248453386901555424, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 1200.9158 + value: 1251.6145 objectReference: {fileID: 0} - target: {fileID: 248453386901555424, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -150 + value: -144.41 objectReference: {fileID: 0} - - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 619698540636144971, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 619698540636144971, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 619698540636144971, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 178.8 - objectReference: {fileID: 0} - - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, - type: 3} - propertyPath: m_SizeDelta.y - value: 86.93 + value: 1755.486 objectReference: {fileID: 0} - - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 619698540636144971, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 105.4 + value: 909.743 objectReference: {fileID: 0} - - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 619698540636144971, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -59.465 + value: -460 objectReference: {fileID: 0} - - target: {fileID: 1280418607787393630, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 628963256592243687, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_Material - value: + propertyPath: m_Size + value: 0.94333345 objectReference: {fileID: 0} - - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 628963256592243687, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchorMax.y + propertyPath: m_Value value: 1 objectReference: {fileID: 0} - - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 879078204719867915, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchorMin.y + propertyPath: m_AnchorMax.x value: 1 objectReference: {fileID: 0} - - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 879078204719867915, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 879078204719867915, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 146.8 + value: -17 objectReference: {fileID: 0} - - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 879078204719867915, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 20.11 + value: -17 objectReference: {fileID: 0} - - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 915861037907762684, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 915861037907762684, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 915861037907762684, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 36.29 + objectReference: {fileID: 0} + - target: {fileID: 915861037907762684, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 89.4 + value: 50.145 objectReference: {fileID: 0} - - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 915861037907762684, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -26.055 + value: -32 objectReference: {fileID: 0} - - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1409.4653 + value: 280 objectReference: {fileID: 0} - - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 26.82 + value: 89.17 objectReference: {fileID: 0} - - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 704.73267 + value: 140 objectReference: {fileID: 0} - - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1214662997668503232, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -13.41 + value: -44.585 objectReference: {fileID: 0} - - target: {fileID: 2602276242752267194, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1280418607787393630, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 1360579588927305721, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 1588156408419140343, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.x value: 1 objectReference: {fileID: 0} - - target: {fileID: 2602276242752267194, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1588156408419140343, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 146.8 + value: 248 objectReference: {fileID: 0} - - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 26.82 + value: 22.35 objectReference: {fileID: 0} - - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 89.4 + value: 140 objectReference: {fileID: 0} - - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 1708088330571745405, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -57.52 + value: -27.175 objectReference: {fileID: 0} - - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2033991298576167431, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2102868547595596977, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2102868547595596977, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2102868547595596977, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 456.18317 + value: 1007.743 objectReference: {fileID: 0} - - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2102868547595596977, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_SizeDelta.y - value: 260 + propertyPath: m_AnchoredPosition.x + value: 503.8715 objectReference: {fileID: 0} - - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2102868547595596977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -212.82 + objectReference: {fileID: 0} + - target: {fileID: 2284791730323673684, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2284791730323673684, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2284791730323673684, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 248.09158 + value: 262.8615 objectReference: {fileID: 0} - - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2284791730323673690, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchoredPosition.y - value: -150 + propertyPath: m_Material + value: objectReference: {fileID: 0} - - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2394482442045986083, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2394482442178281613, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2394482442178281613, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2394482442178281613, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1409.4653 + value: 560 objectReference: {fileID: 0} - - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2394482442178281613, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 26.82 + value: 35.76 objectReference: {fileID: 0} - - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2394482442178281613, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 704.73267 + value: 280 objectReference: {fileID: 0} - - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2416474379553470136, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchoredPosition.y - value: -99.05 + propertyPath: m_AnchorMax.x + value: 1 objectReference: {fileID: 0} - - target: {fileID: 4559103411365147038, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2416474379553470136, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_SizeDelta.y - value: 581.86 + propertyPath: m_SizeDelta.x + value: -17 objectReference: {fileID: 0} - - target: {fileID: 5004666515540048662, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2432997396041558253, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_Material - value: + propertyPath: m_Size + value: 0.99999994 objectReference: {fileID: 0} - - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1925.6484 + value: 1007.743 objectReference: {fileID: 0} - - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 40 + value: 26.82 objectReference: {fileID: 0} - - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 978.8242 + value: 503.8715 objectReference: {fileID: 0} - - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2566312808286550809, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -36 - objectReference: {fileID: 0} - - target: {fileID: 5433599581826670863, guid: 3001895aaef50441d8dcfd0855b2a770, - type: 3} - propertyPath: m_Material - value: + value: -13.41 objectReference: {fileID: 0} - - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2594161896175068020, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchorMax.y + propertyPath: m_AnchorMax.x value: 1 objectReference: {fileID: 0} - - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2594161896175068020, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchorMin.y + propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2594161896175068020, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1409.4653 + value: -17 objectReference: {fileID: 0} - - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2594161896175068020, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 88.72 + value: -17 objectReference: {fileID: 0} - - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2602276242752267194, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchoredPosition.x - value: 704.73267 + propertyPath: m_AnchorMax.x + value: 1 objectReference: {fileID: 0} - - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2602276242752267194, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchoredPosition.y - value: -215.64 + propertyPath: m_AnchorMax.y + value: 1 objectReference: {fileID: 0} - - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2602276242752267194, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2689677033144375975, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2689677033144375975, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2689677033144375975, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 456.18317 - objectReference: {fileID: 0} - - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, - type: 3} - propertyPath: m_SizeDelta.y - value: 260 + value: 323.76 objectReference: {fileID: 0} - - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2689677033144375975, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 228.09158 + value: 430.3715 objectReference: {fileID: 0} - - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2689677033144375975, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -130 + value: -36 objectReference: {fileID: 0} - - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2747371134552643273, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2747371134552643273, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2747371134552643273, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1893.6484 + value: 560 objectReference: {fileID: 0} - - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2747371134552643273, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 18 + value: 60 objectReference: {fileID: 0} - - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2747371134552643273, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 962.8242 + value: 300 objectReference: {fileID: 0} - - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2747371134552643273, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -25 + value: -164.57999 objectReference: {fileID: 0} - - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2878744329540641061, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2878744329540641061, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2878744329540641061, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1925.6484 + value: 560 objectReference: {fileID: 0} - - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 2878744329540641061, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_AnchoredPosition.x - value: 962.8242 - objectReference: {fileID: 0} + propertyPath: m_SizeDelta.y + value: 26.82 + objectReference: {fileID: 0} + - target: {fileID: 2878744329540641061, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 300 + objectReference: {fileID: 0} + - target: {fileID: 2878744329540641061, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -101.17 + objectReference: {fileID: 0} + - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 248 + objectReference: {fileID: 0} + - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 26.82 + objectReference: {fileID: 0} + - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 140 + objectReference: {fileID: 0} + - target: {fileID: 3001622536836691968, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -59.76 + objectReference: {fileID: 0} + - target: {fileID: 3035158559882944977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3035158559882944977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3035158559882944977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 860.743 + objectReference: {fileID: 0} + - target: {fileID: 3035158559882944977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 72 + objectReference: {fileID: 0} + - target: {fileID: 3035158559882944977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 430.3715 + objectReference: {fileID: 0} + - target: {fileID: 3035158559882944977, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -36 + objectReference: {fileID: 0} + - target: {fileID: 3188313354869154749, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3188313354869154749, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 456.18317 + objectReference: {fileID: 0} + - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 260 + objectReference: {fileID: 0} + - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 248.09158 + objectReference: {fileID: 0} + - target: {fileID: 3238206981061218526, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -150 + objectReference: {fileID: 0} + - target: {fileID: 3455220999730956230, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3455220999730956230, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3455220999730956230, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 355.9265 + objectReference: {fileID: 0} + - target: {fileID: 3455220999730956230, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 32 + objectReference: {fileID: 0} + - target: {fileID: 3455220999730956230, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -48 + objectReference: {fileID: 0} + - target: {fileID: 3568366139250381339, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3568366139250381339, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3568366139250381339, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 3568366139250381339, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 3590656101560901416, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3590656101560901416, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3590656101560901416, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.056666553 + objectReference: {fileID: 0} + - target: {fileID: 3661139419109309395, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3661139419109309395, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3661139419109309395, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 885.983 + objectReference: {fileID: 0} + - target: {fileID: 3661139419109309395, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 442.9915 + objectReference: {fileID: 0} + - target: {fileID: 3661139419109309395, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -20 + objectReference: {fileID: 0} + - target: {fileID: 3758318194252029649, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3758318194252029649, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 3821769267628310481, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3821769267628310481, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3821769267628310481, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 860.743 + objectReference: {fileID: 0} + - target: {fileID: 3821769267628310481, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 860.743 + objectReference: {fileID: 0} + - target: {fileID: 3821769267628310481, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -120 + objectReference: {fileID: 0} + - target: {fileID: 4117396310153235866, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4117396310153235866, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4117396310153235866, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 424.8165 + objectReference: {fileID: 0} + - target: {fileID: 4117396310153235866, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 616.3348 + objectReference: {fileID: 0} + - target: {fileID: 4117396310153235866, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -48 + objectReference: {fileID: 0} + - target: {fileID: 4279176796958907338, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4279176796958907338, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4279176796958907338, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 4279176796958907338, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 26.82 + objectReference: {fileID: 0} + - target: {fileID: 4279176796958907338, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 280 + objectReference: {fileID: 0} + - target: {fileID: 4321183276467806256, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4321183276467806256, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4321183276467806256, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 869.503 + objectReference: {fileID: 0} + - target: {fileID: 4321183276467806256, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 1320.7345 + objectReference: {fileID: 0} + - target: {fileID: 4321183276467806256, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -20 + objectReference: {fileID: 0} + - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1409.4653 + objectReference: {fileID: 0} + - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 26.82 + objectReference: {fileID: 0} + - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 704.73267 + objectReference: {fileID: 0} + - target: {fileID: 4340220603200959933, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -99.05 + objectReference: {fileID: 0} + - target: {fileID: 4559103411365147038, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 820 + objectReference: {fileID: 0} + - target: {fileID: 4572433871481564286, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4572433871481564286, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5004666515540048662, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1836.486 + objectReference: {fileID: 0} + - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 40 + objectReference: {fileID: 0} + - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 950.243 + objectReference: {fileID: 0} + - target: {fileID: 5164312704210014232, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -52 + objectReference: {fileID: 0} + - target: {fileID: 5201747520396966631, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5201747520396966631, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5433599581826670863, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 5826555263082517190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5826555263082517190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5826555263082517190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1007.743 + objectReference: {fileID: 0} + - target: {fileID: 5826555263082517190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 503.8715 + objectReference: {fileID: 0} + - target: {fileID: 5826555263082517190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -268.82 + objectReference: {fileID: 0} + - target: {fileID: 6151446294135569783, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6151446294135569783, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6151446294135569783, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 860.743 + objectReference: {fileID: 0} + - target: {fileID: 6151446294135569783, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 72 + objectReference: {fileID: 0} + - target: {fileID: 6151446294135569783, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 430.3715 + objectReference: {fileID: 0} + - target: {fileID: 6151446294135569783, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -36 + objectReference: {fileID: 0} + - target: {fileID: 6373521067095767262, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6373521067095767262, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6373521067095767262, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 877.743 + objectReference: {fileID: 0} + - target: {fileID: 6373521067095767262, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 438.8715 + objectReference: {fileID: 0} + - target: {fileID: 6373521067095767262, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -150 + objectReference: {fileID: 0} + - target: {fileID: 6414723879218645855, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 168 + objectReference: {fileID: 0} + - target: {fileID: 6483324042129981190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6483324042129981190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6483324042129981190, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: -327.74298 + objectReference: {fileID: 0} + - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1409.4653 + objectReference: {fileID: 0} + - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 88.72 + objectReference: {fileID: 0} + - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 704.73267 + objectReference: {fileID: 0} + - target: {fileID: 6487578404798954297, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -215.64 + objectReference: {fileID: 0} + - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 456.18317 + objectReference: {fileID: 0} + - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 260 + objectReference: {fileID: 0} + - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 228.09158 + objectReference: {fileID: 0} + - target: {fileID: 6557895285117202336, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -130 + objectReference: {fileID: 0} + - target: {fileID: 6695690001535037887, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6695690001535037887, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6898932858357690874, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6898932858357690874, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6898932858357690874, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 877.743 + objectReference: {fileID: 0} + - target: {fileID: 6898932858357690874, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 1316.6145 + objectReference: {fileID: 0} + - target: {fileID: 6898932858357690874, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -150 + objectReference: {fileID: 0} + - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1007.743 + objectReference: {fileID: 0} + - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 18 + objectReference: {fileID: 0} + - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 503.8715 + objectReference: {fileID: 0} + - target: {fileID: 6905405957053067275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.82 + objectReference: {fileID: 0} + - target: {fileID: 6917705482908285452, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6917705482908285452, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6917705482908285452, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 437.06 + objectReference: {fileID: 0} + - target: {fileID: 6917705482908285452, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 430.3715 + objectReference: {fileID: 0} + - target: {fileID: 6917705482908285452, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -36 + objectReference: {fileID: 0} + - target: {fileID: 6935613213051159438, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6935613213051159438, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6935613213051159438, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 357.8815 + objectReference: {fileID: 0} + - target: {fileID: 6935613213051159438, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 32 + objectReference: {fileID: 0} + - target: {fileID: 6935613213051159438, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -48 + objectReference: {fileID: 0} + - target: {fileID: 7065498185851056957, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7065498185851056957, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7065498185851056957, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.056666553 + objectReference: {fileID: 0} + - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1007.743 + objectReference: {fileID: 0} - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} + propertyPath: m_AnchoredPosition.x + value: 503.8715 + objectReference: {fileID: 0} + - target: {fileID: 7198983928074868245, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -126.82 + objectReference: {fileID: 0} + - target: {fileID: 7368710581326787877, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7368710581326787877, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7368710581326787877, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 7368710581326787877, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 35.76 + objectReference: {fileID: 0} + - target: {fileID: 7368710581326787877, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 300 + objectReference: {fileID: 0} + - target: {fileID: 7368710581326787877, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} propertyPath: m_AnchoredPosition.y - value: -470.93 + value: -49.879997 objectReference: {fileID: 0} - target: {fileID: 7464639486292647072, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} @@ -1893,11 +2713,146 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 7510809188624096651, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7511881637065001384, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7511881637065001384, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} - target: {fileID: 7624981730014870609, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_Material value: objectReference: {fileID: 0} + - target: {fileID: 7661072596932978818, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 7691807456016870778, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7691807456016870778, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7691807456016870778, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 727.743 + objectReference: {fileID: 0} + - target: {fileID: 7691807456016870778, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 400 + objectReference: {fileID: 0} + - target: {fileID: 7691807456016870778, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 363.8715 + objectReference: {fileID: 0} + - target: {fileID: 7691807456016870778, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -200 + objectReference: {fileID: 0} + - target: {fileID: 7769902428205069781, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 132.7 + objectReference: {fileID: 0} + - target: {fileID: 8003800308094905603, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8003800308094905603, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8003800308094905603, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1755.486 + objectReference: {fileID: 0} + - target: {fileID: 8003800308094905603, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 400 + objectReference: {fileID: 0} + - target: {fileID: 8003800308094905603, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 909.743 + objectReference: {fileID: 0} + - target: {fileID: 8003800308094905603, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -224 + objectReference: {fileID: 0} + - target: {fileID: 8044705250157237766, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8044705250157237766, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8044705250157237766, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 109.07 + objectReference: {fileID: 0} + - target: {fileID: 8044705250157237766, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -20 + objectReference: {fileID: 0} + - target: {fileID: 8083287751170890080, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8083287751170890080, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8083287751170890080, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 100.29 + objectReference: {fileID: 0} + - target: {fileID: 8083287751170890080, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 64 + objectReference: {fileID: 0} + - target: {fileID: 8083287751170890080, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 363.6 + objectReference: {fileID: 0} + - target: {fileID: 8083287751170890080, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -32 + objectReference: {fileID: 0} - target: {fileID: 8124660869522595876, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y @@ -1923,15 +2878,85 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -150 objectReference: {fileID: 0} + - target: {fileID: 8136651414270767712, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8136651414270767712, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8136651414270767712, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 264.8165 + objectReference: {fileID: 0} + - target: {fileID: 8136651414270767726, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 8155722883063729602, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8155722883063729602, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8155722883063729602, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 15.63 + objectReference: {fileID: 0} + - target: {fileID: 8155722883063729602, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 117.07 + objectReference: {fileID: 0} + - target: {fileID: 8155722883063729602, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -20 + objectReference: {fileID: 0} - target: {fileID: 8162164862116276163, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_Material - value: + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 8262708645281043928, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 8323929328015196559, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8323929328015196559, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8323929328015196559, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 1755.486 + objectReference: {fileID: 0} + - target: {fileID: 8323929328015196559, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 909.743 objectReference: {fileID: 0} - - target: {fileID: 8262708645281043928, guid: 3001895aaef50441d8dcfd0855b2a770, + - target: {fileID: 8323929328015196559, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} - propertyPath: m_Material - value: + propertyPath: m_AnchoredPosition.y + value: -646 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} @@ -1946,22 +2971,32 @@ PrefabInstance: - target: {fileID: 8358955473714987148, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.x - value: 1925.6484 + value: 1836.486 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_SizeDelta.y - value: 971.23 + value: 999.08923 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.x - value: 978.8242 + value: 950.243 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchoredPosition.y - value: -557.615 + value: -591.5446 + objectReference: {fileID: 0} + - target: {fileID: 8403506395740994891, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Size + value: 0.94333345 + objectReference: {fileID: 0} + - target: {fileID: 8403506395740994891, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_Value + value: 1 objectReference: {fileID: 0} - target: {fileID: 8529914143337080715, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} @@ -1993,6 +3028,31 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -56.23 objectReference: {fileID: 0} + - target: {fileID: 8543531253162609106, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8543531253162609106, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8543531253162609106, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 422.8615 + objectReference: {fileID: 0} + - target: {fileID: 8543531253162609106, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 617.31226 + objectReference: {fileID: 0} + - target: {fileID: 8543531253162609106, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -48 + objectReference: {fileID: 0} - target: {fileID: 8546944980209044824, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y @@ -2023,6 +3083,41 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -141.87 objectReference: {fileID: 0} + - target: {fileID: 8550975175601005275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8550975175601005275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8550975175601005275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 8550975175601005275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 64 + objectReference: {fileID: 0} + - target: {fileID: 8550975175601005275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 300 + objectReference: {fileID: 0} + - target: {fileID: 8550975175601005275, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -246.57999 + objectReference: {fileID: 0} + - target: {fileID: 8611774517390306429, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 168 + objectReference: {fileID: 0} - target: {fileID: 8685314720293166974, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} propertyPath: m_AnchorMax.y @@ -2048,6 +3143,91 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -330 objectReference: {fileID: 0} + - target: {fileID: 8695622569400978396, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8695622569400978396, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8695622569400978396, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 496 + objectReference: {fileID: 0} + - target: {fileID: 8695622569400978396, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 280 + objectReference: {fileID: 0} + - target: {fileID: 8695622569400978396, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -30 + objectReference: {fileID: 0} + - target: {fileID: 8843645455531899801, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8843645455531899801, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8843645455531899801, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 860.743 + objectReference: {fileID: 0} + - target: {fileID: 8843645455531899801, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 860.743 + objectReference: {fileID: 0} + - target: {fileID: 8843645455531899801, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -120 + objectReference: {fileID: 0} + - target: {fileID: 9056941430682823851, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9056941430682823851, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9056941430682823851, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.x + value: 147.2 + objectReference: {fileID: 0} + - target: {fileID: 9056941430682823851, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_SizeDelta.y + value: 64 + objectReference: {fileID: 0} + - target: {fileID: 9056941430682823851, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 219.85501 + objectReference: {fileID: 0} + - target: {fileID: 9056941430682823851, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -32 + objectReference: {fileID: 0} + - target: {fileID: 9075734649742767900, guid: 3001895aaef50441d8dcfd0855b2a770, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3001895aaef50441d8dcfd0855b2a770, type: 3} --- !u!224 &5792095424041117997 stripped @@ -2343,6 +3523,31 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 5280667181393737275} m_Modifications: + - target: {fileID: 546365041315781962, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 546365041315781962, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 546365041315781962, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 546365041315781962, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 117.07 + objectReference: {fileID: 0} + - target: {fileID: 546365041315781962, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 737549691540886460, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.x @@ -2396,52 +3601,72 @@ PrefabInstance: - target: {fileID: 1560834978935093154, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.x - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1560834978935093154, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1560834978935093154, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: -17 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1560834978935093154, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: -17 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1703904101713240439, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1703904101713240439, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1703904101713240439, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1634.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1703904101713240439, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: 26.82 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1703904101713240439, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 817.20264 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1703904101713240439, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -13.41 + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1810286594663368334, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1810286594663368334, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1810286594663368334, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1810286594663368334, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 objectReference: {fileID: 0} - target: {fileID: 1984418949486896673, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2456,47 +3681,57 @@ PrefabInstance: - target: {fileID: 2033991298576167431, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_Value - value: 1 + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2121155614746076509, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 objectReference: {fileID: 0} - target: {fileID: 2206679914199210741, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2206679914199210741, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2206679914199210741, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1634.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2206679914199210741, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: 26.82 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2206679914199210741, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 817.20264 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2206679914199210741, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -83.05 + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2277845348434487466, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_IsActive + value: 1 objectReference: {fileID: 0} - target: {fileID: 2602276242752267194, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.x - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2602276242752267194, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3124783339611405733, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2533,6 +3768,11 @@ PrefabInstance: propertyPath: m_Material value: objectReference: {fileID: 0} + - target: {fileID: 3515484926244735740, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 3565483341480360257, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y @@ -2571,17 +3811,17 @@ PrefabInstance: - target: {fileID: 3995018089020746221, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: 250 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4572433871481564286, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4572433871481564286, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: -17 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4732873293275788345, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2591,107 +3831,158 @@ PrefabInstance: - target: {fileID: 5164312704210014232, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5164312704210014232, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5164312704210014232, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1911.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5164312704210014232, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: 40 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5164312704210014232, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 971.70264 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5164312704210014232, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -36 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5201747520396966631, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.x - value: 1 + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5201747520396966631, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5215714299094789106, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.y + value: 200 + objectReference: {fileID: 0} + - target: {fileID: 5222387661415454087, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} + - target: {fileID: 5230639766599389311, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5230639766599389311, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5230639766599389311, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5230639766599389311, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5230639766599389311, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5230639766599389311, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 objectReference: {fileID: 0} - - target: {fileID: 5201747520396966631, guid: 64bcda17fbc7b486aaca045d0371d047, + - target: {fileID: 5328111735382652688, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} - propertyPath: m_SizeDelta.x - value: -17 - objectReference: {fileID: 0} - - target: {fileID: 5215714299094789106, guid: 64bcda17fbc7b486aaca045d0371d047, + propertyPath: m_AddFunds + value: + objectReference: {fileID: 1740985603534740149} + - target: {fileID: 5328111735382652688, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} - propertyPath: m_SizeDelta.y - value: 200 + propertyPath: m_PauseEvent + value: + objectReference: {fileID: 11400000, guid: 4bbf7a853b87f44299489a25eb0d9ce5, + type: 2} + - target: {fileID: 5328111735382652688, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_CustomDialog + value: objectReference: {fileID: 0} - target: {fileID: 5521470754286056976, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5521470754286056976, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5521470754286056976, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1634.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5521470754286056976, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: 210 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5521470754286056976, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 1057.2026 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5521470754286056976, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -125 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5538285658628802168, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -16.00003 + value: -16.000061 objectReference: {fileID: 0} - target: {fileID: 5928115135867487630, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5928115135867487630, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5928115135867487630, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1911.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5928115135867487630, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 971.70264 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5928115135867487630, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -1050.993 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6002942938787146765, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2701,27 +3992,27 @@ PrefabInstance: - target: {fileID: 6116018892486565038, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6116018892486565038, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6116018892486565038, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1894.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6116018892486565038, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 947.20264 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6116018892486565038, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -125 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6152410843199356558, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2738,6 +4029,11 @@ PrefabInstance: propertyPath: m_Value value: 1 objectReference: {fileID: 0} + - target: {fileID: 6274247523209718665, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_Size + value: 0.99999994 + objectReference: {fileID: 0} - target: {fileID: 7178615266057719678, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y @@ -2766,11 +4062,16 @@ PrefabInstance: - target: {fileID: 7464639486292647072, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.x - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7464639486292647072, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7510809188624096644, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_CullTransparentMesh value: 1 objectReference: {fileID: 0} - target: {fileID: 7510809188624096649, guid: 64bcda17fbc7b486aaca045d0371d047, @@ -2781,7 +4082,7 @@ PrefabInstance: - target: {fileID: 7510809188624096649, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_IsActive - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7510809188624096650, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2888,6 +4189,11 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 7510809188624096651, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} - target: {fileID: 7941031815795435411, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.x @@ -2901,32 +4207,32 @@ PrefabInstance: - target: {fileID: 8358955473714987148, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.x - value: 1911.4053 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_SizeDelta.y - value: 954.99304 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.x - value: 971.70264 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8358955473714987148, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} propertyPath: m_AnchoredPosition.y - value: -553.4965 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8790542904964398415, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} @@ -2938,6 +4244,26 @@ PrefabInstance: propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} + - target: {fileID: 8922011133700620803, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8922011133700620803, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8922011133700620803, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8922011133700620803, guid: 64bcda17fbc7b486aaca045d0371d047, + type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 64bcda17fbc7b486aaca045d0371d047, type: 3} --- !u!224 &2830838462650332675 stripped @@ -3101,6 +4427,229 @@ RectTransform: type: 3} m_PrefabInstance: {fileID: 6194789805386799104} m_PrefabAsset: {fileID: 0} +--- !u!1001 &6790200674544944290 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 2830838462650332675} + m_Modifications: + - target: {fileID: 3348932395087739939, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_PresetInfoIsWorld + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5049268175328206359, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_FiatButton + value: + objectReference: {fileID: 1328694871562245659} + - target: {fileID: 5049268175328206359, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_TokenButton + value: + objectReference: {fileID: 6928323830391655009} + - target: {fileID: 5049268175328206359, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_CancelButton + value: + objectReference: {fileID: 7566957681356292534} + - target: {fileID: 5464304629124346696, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Sprite + value: + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346696, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Color.b + value: 0.17254902 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346696, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Color.g + value: 0.17254902 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346696, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Color.r + value: 0.17254902 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346696, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_SizeDelta.x + value: 600 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_SizeDelta.y + value: 650 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346709, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Name + value: AddFundsView + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346709, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7911546731179172212, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: + - {fileID: 4211175140878453902, guid: 9703ade02db14aea9329516418991255, type: 3} + m_SourcePrefab: {fileID: 100100000, guid: 9703ade02db14aea9329516418991255, type: 3} +--- !u!114 &1328694871562245659 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5497729094643045049, guid: 9703ade02db14aea9329516418991255, + type: 3} + m_PrefabInstance: {fileID: 6790200674544944290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1740985603534740149 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5049268175328206359, guid: 9703ade02db14aea9329516418991255, + type: 3} + m_PrefabInstance: {fileID: 6790200674544944290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 34f4fd3646f040d99e04107838a59be2, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &6928323830391655009 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 4476008866051575491, guid: 9703ade02db14aea9329516418991255, + type: 3} + m_PrefabInstance: {fileID: 6790200674544944290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &7566957681356292534 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 3979097821289202964, guid: 9703ade02db14aea9329516418991255, + type: 3} + m_PrefabInstance: {fileID: 6790200674544944290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1001 &7886406407873986427 PrefabInstance: m_ObjectHideFlags: 0 @@ -3658,6 +5207,11 @@ PrefabInstance: propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} + - target: {fileID: 3131134289348569517, guid: 2bd07de9c5931481cb95670dfa7aeeb9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 3278325155602318982, guid: 2bd07de9c5931481cb95670dfa7aeeb9, type: 3} propertyPath: m_Material @@ -3826,7 +5380,7 @@ PrefabInstance: - target: {fileID: 5538285658628802168, guid: 2bd07de9c5931481cb95670dfa7aeeb9, type: 3} propertyPath: m_AnchoredPosition.y - value: -16.00003 + value: -16.000061 objectReference: {fileID: 0} - target: {fileID: 5928115135867487630, guid: 2bd07de9c5931481cb95670dfa7aeeb9, type: 3} @@ -3853,6 +5407,11 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -1053.7822 objectReference: {fileID: 0} + - target: {fileID: 6035985724340795094, guid: 2bd07de9c5931481cb95670dfa7aeeb9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 6116018892486565038, guid: 2bd07de9c5931481cb95670dfa7aeeb9, type: 3} propertyPath: m_AnchorMax.y @@ -4118,6 +5677,11 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -240 objectReference: {fileID: 0} + - target: {fileID: 934575569233272806, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 1214662997668503232, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, type: 3} propertyPath: m_AnchorMax.y @@ -4208,6 +5772,11 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -348 objectReference: {fileID: 0} + - target: {fileID: 2351648053265136106, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 2566312808286550809, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, type: 3} propertyPath: m_AnchorMax.y @@ -4243,6 +5812,11 @@ PrefabInstance: propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} + - target: {fileID: 2617080597541062036, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 3001622536836691968, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, type: 3} propertyPath: m_AnchorMax.y @@ -4333,6 +5907,11 @@ PrefabInstance: propertyPath: m_SizeDelta.x value: -192.31085 objectReference: {fileID: 0} + - target: {fileID: 4551966251561724957, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 4559103411365147038, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, type: 3} propertyPath: m_SizeDelta.y @@ -4423,6 +6002,11 @@ PrefabInstance: propertyPath: m_Value value: 1 objectReference: {fileID: 0} + - target: {fileID: 6346306844257461905, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, + type: 3} + propertyPath: m_Material + value: + objectReference: {fileID: 0} - target: {fileID: 6487578404798954297, guid: 2ec3e3794a03a4a04a36f3d6f63684e9, type: 3} propertyPath: m_AnchorMax.y diff --git a/Assets/Shared/Scripts/AddFunds.cs b/Assets/Shared/Scripts/AddFunds.cs new file mode 100644 index 00000000..c1e473bd --- /dev/null +++ b/Assets/Shared/Scripts/AddFunds.cs @@ -0,0 +1,52 @@ +using UnityEngine; +using UnityEngine.UI; +using System.Collections.Generic; +using System.Linq; +using Immutable.Marketplace.OnRamp; +using Immutable.Passport; +using Xsolla.Core; + +namespace HyperCasual.Runner +{ + /// + /// This View contains celebration screen functionalities + /// + public class AddFunds : MonoBehaviour + { + [SerializeField] + Button m_FiatButton; + [SerializeField] + Button m_TokenButton; + [SerializeField] + Button m_CancelButton; + public void Show() + { + m_FiatButton.onClick.AddListener(OnFiatButtonClicked); + m_TokenButton.onClick.AddListener(OnTokenButtonClicked); + m_CancelButton.onClick.AddListener(OnCancelButtonClicked); + gameObject.SetActive(true); + } + + private async void OnFiatButtonClicked() + { + string environment = Immutable.Passport.Model.Environment.SANDBOX; + string email = await Passport.Instance.GetEmail(); + List walletAddress = await Passport.Instance.ZkEvmRequestAccounts(); + OnRamp onRamp = new OnRamp(environment, email, walletAddress.FirstOrDefault()); + string link = await onRamp.GetLink(); + Debug.Log($"onRamp.GetOnRampLink: {link}"); + + XsollaWebBrowser.Open(link); + } + + private void OnTokenButtonClicked() + { + Application.OpenURL($"https://checkout-playground.sandbox.immutable.com/embedded/add-funds/?publishableKey=pk_imapik-test-Xdera%40&passportClientId={Config.CLIENT_ID}&redirectUri={Config.REDIRECT_URI}"); + } + + private void OnCancelButtonClicked() + { + gameObject.SetActive(false); + } + } +} diff --git a/Assets/Shared/Scripts/AddFunds.cs.meta b/Assets/Shared/Scripts/AddFunds.cs.meta new file mode 100644 index 00000000..05b4a225 --- /dev/null +++ b/Assets/Shared/Scripts/AddFunds.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 34f4fd3646f040d99e04107838a59be2 +timeCreated: 1727332206 \ No newline at end of file diff --git a/Assets/Shared/Scripts/AudioManager.cs b/Assets/Shared/Scripts/AudioManager.cs index 861c26c2..3c76c415 100644 --- a/Assets/Shared/Scripts/AudioManager.cs +++ b/Assets/Shared/Scripts/AudioManager.cs @@ -15,7 +15,9 @@ public class AudioManager : AbstractSingleton [SerializeField] private AudioSource m_EffectSource; - [SerializeField][Min(0f)] private float m_MinSoundInterval = 0.1f; + [SerializeField] + [Min(0f)] + private float m_MinSoundInterval = 0.1f; [SerializeField] private SoundIDClipPair[] m_Sounds; diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs index 3c10a53f..e3ec97bd 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs @@ -11,25 +11,27 @@ using System; using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; using Immutable.Search.Client; using Immutable.Search.Model; namespace Immutable.Search.Api { + /// - /// Represents a collection of functions to interact with the API endpoints + /// Represents a collection of functions to interact with the API endpoints /// public interface ISearchApiSync : IApiAccessor { #region Synchronous Operations - /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain @@ -38,355 +40,256 @@ public interface ISearchApiSync : IApiAccessor void Backfill(string chainName, BackfillRequest backfillRequest); /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain /// /// ApiResponse of Object(void) - ApiResponse BackfillWithHttpInfo(string chainName, BackfillRequest backfillRequest); - + ApiResponse BackfillWithHttpInfo(string chainName, BackfillRequest backfillRequest); /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForNFTsResult - QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, - string? pageCursor = default); + QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForNFTsResult - ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, - List tokenId, string? pageCursor = default); - + ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForStacksResult - QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, - string? pageCursor = default); + QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForStacksResult - ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, - List stackId, string? pageCursor = default); - + ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); /// - /// Search NFT stacks + /// Search NFT stacks /// /// - /// Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// SearchStacksResult - SearchStacksResult SearchStacks(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default); + SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); /// - /// Search NFT stacks + /// Search NFT stacks /// /// - /// Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of SearchStacksResult - ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default); - + ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); #endregion Synchronous Operations } /// - /// Represents a collection of functions to interact with the API endpoints + /// Represents a collection of functions to interact with the API endpoints /// public interface ISearchApiAsync : IApiAccessor { #region Asynchronous Operations - /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain /// /// Cancellation Token to cancel the request. /// Task of void - Task BackfillAsync(string chainName, BackfillRequest backfillRequest, - CancellationToken cancellationToken = default); + System.Threading.Tasks.Task BackfillAsync(string chainName, BackfillRequest backfillRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// - /// Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain /// /// Cancellation Token to cancel the request. /// Task of ApiResponse - Task> BackfillWithHttpInfoAsync(string chainName, BackfillRequest backfillRequest, - CancellationToken cancellationToken = default); - + System.Threading.Tasks.Task> BackfillWithHttpInfoAsync(string chainName, BackfillRequest backfillRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForNFTsResult - Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, - string? pageCursor = default, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// - /// Get pricing data for a list of token ids + /// Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForNFTsResult) - Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, - List tokenId, string? pageCursor = default, CancellationToken cancellationToken = default); - + System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForStacksResult - Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, - string? pageCursor = default, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// - /// Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForStacksResult) - Task> QuotesForStacksWithHttpInfoAsync(string chainName, - string contractAddress, List stackId, string? pageCursor = default, - CancellationToken cancellationToken = default); - + System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Search NFT stacks + /// Search NFT stacks /// /// - /// Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of SearchStacksResult - Task SearchStacksAsync(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default); + System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Search NFT stacks + /// Search NFT stacks /// /// - /// Search NFT stacks + /// Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (SearchStacksResult) - Task> SearchStacksWithHttpInfoAsync(string chainName, - List contractAddress, string? accountAddress = default, bool? onlyIncludeOwnerListings = default, - string? trait = default, string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default); - + System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } /// - /// Represents a collection of functions to interact with the API endpoints + /// Represents a collection of functions to interact with the API endpoints /// public interface ISearchApi : ISearchApiSync, ISearchApiAsync { + } /// - /// Represents a collection of functions to interact with the API endpoints + /// Represents a collection of functions to interact with the API endpoints /// - public class SearchApi : IDisposable, ISearchApi + public partial class SearchApi : IDisposable, ISearchApi { - private ExceptionFactory _exceptionFactory = (name, response) => null; + private Immutable.Search.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// public SearchApi() : this((string)null) @@ -394,134 +297,123 @@ public SearchApi() : this((string)null) } /// - /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// The target service's base path in URL format. /// /// public SearchApi(string basePath) { - Configuration = Search.Client.Configuration.MergeConfigurations( - GlobalConfiguration.Instance, - new Configuration { BasePath = basePath } + this.Configuration = Immutable.Search.Client.Configuration.MergeConfigurations( + Immutable.Search.Client.GlobalConfiguration.Instance, + new Immutable.Search.Client.Configuration { BasePath = basePath } ); - ApiClient = new ApiClient(Configuration.BasePath); - Client = ApiClient; - AsynchronousClient = ApiClient; - ExceptionFactory = Search.Client.Configuration.DefaultExceptionFactory; + this.ApiClient = new Immutable.Search.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Search.Client.Configuration.DefaultExceptionFactory; } /// - /// Initializes a new instance of the class using Configuration object. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// An instance of Configuration. /// /// - public SearchApi(Configuration configuration) + public SearchApi(Immutable.Search.Client.Configuration configuration) { if (configuration == null) throw new ArgumentNullException("configuration"); - Configuration = Search.Client.Configuration.MergeConfigurations( - GlobalConfiguration.Instance, + this.Configuration = Immutable.Search.Client.Configuration.MergeConfigurations( + Immutable.Search.Client.GlobalConfiguration.Instance, configuration ); - ApiClient = new ApiClient(Configuration.BasePath); - Client = ApiClient; - AsynchronousClient = ApiClient; - ExceptionFactory = Search.Client.Configuration.DefaultExceptionFactory; + this.ApiClient = new Immutable.Search.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Search.Client.Configuration.DefaultExceptionFactory; } /// - /// Initializes a new instance of the class - /// using a Configuration object and client instance. + /// Initializes a new instance of the class + /// using a Configuration object and client instance. /// /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. /// - public SearchApi(ISynchronousClient client, IAsynchronousClient asyncClient, - IReadableConfiguration configuration) + public SearchApi(Immutable.Search.Client.ISynchronousClient client, Immutable.Search.Client.IAsynchronousClient asyncClient, Immutable.Search.Client.IReadableConfiguration configuration) { if (client == null) throw new ArgumentNullException("client"); if (asyncClient == null) throw new ArgumentNullException("asyncClient"); if (configuration == null) throw new ArgumentNullException("configuration"); - Client = client; - AsynchronousClient = asyncClient; - Configuration = configuration; - ExceptionFactory = Search.Client.Configuration.DefaultExceptionFactory; + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Search.Client.Configuration.DefaultExceptionFactory; } /// - /// Holds the ApiClient if created + /// Disposes resources if they were created by us /// - public ApiClient ApiClient { get; set; } + public void Dispose() + { + this.ApiClient?.Dispose(); + } /// - /// The client for accessing this underlying API asynchronously. + /// Holds the ApiClient if created /// - public IAsynchronousClient AsynchronousClient { get; set; } + public Immutable.Search.Client.ApiClient ApiClient { get; set; } = null; /// - /// The client for accessing this underlying API synchronously. + /// The client for accessing this underlying API asynchronously. /// - public ISynchronousClient Client { get; set; } + public Immutable.Search.Client.IAsynchronousClient AsynchronousClient { get; set; } /// - /// Disposes resources if they were created by us + /// The client for accessing this underlying API synchronously. /// - public void Dispose() - { - ApiClient?.Dispose(); - } + public Immutable.Search.Client.ISynchronousClient Client { get; set; } /// - /// Gets the base path of the API client. + /// Gets the base path of the API client. /// /// The base path public string GetBasePath() { - return Configuration.BasePath; + return this.Configuration.BasePath; } /// - /// Gets or sets the configuration object + /// Gets or sets the configuration object /// /// An instance of the Configuration - public IReadableConfiguration Configuration { get; set; } + public Immutable.Search.Client.IReadableConfiguration Configuration { get; set; } /// - /// Provides a factory method hook for the creation of exceptions. + /// Provides a factory method hook for the creation of exceptions. /// - public ExceptionFactory ExceptionFactory + public Immutable.Search.Client.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } return _exceptionFactory; } - set => _exceptionFactory = value; + set { _exceptionFactory = value; } } /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain @@ -533,55 +425,49 @@ public void Backfill(string chainName, BackfillRequest backfillRequest) } /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain /// /// ApiResponse of Object(void) - public ApiResponse BackfillWithHttpInfo(string chainName, BackfillRequest backfillRequest) + public Immutable.Search.Client.ApiResponse BackfillWithHttpInfo(string chainName, BackfillRequest backfillRequest) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->Backfill"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->Backfill"); // verify the required parameter 'backfillRequest' is set if (backfillRequest == null) - throw new ApiException(400, - "Missing required parameter 'backfillRequest' when calling SearchApi->Backfill"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'backfillRequest' when calling SearchApi->Backfill"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter localVarRequestOptions.Data = backfillRequest; // make the HTTP request - var localVarResponse = Client.Post("/v1/internal/chains/{chain_name}/backfill", - localVarRequestOptions, Configuration); + var localVarResponse = this.Client.Post("/v1/internal/chains/{chain_name}/backfill", localVarRequestOptions, this.Configuration); - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("Backfill", localVarResponse); + Exception _exception = this.ExceptionFactory("Backfill", localVarResponse); if (_exception != null) throw _exception; } @@ -589,15 +475,14 @@ public ApiResponse BackfillWithHttpInfo(string chainName, BackfillReques } /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain /// /// Cancellation Token to cancel the request. /// Task of void - public async Task BackfillAsync(string chainName, BackfillRequest backfillRequest, - CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task BackfillAsync(string chainName, BackfillRequest backfillRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = BackfillWithHttpInfoAsync(chainName, backfillRequest, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -608,56 +493,49 @@ public async Task BackfillAsync(string chainName, BackfillRequest backfillReques } /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity + /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity /// /// Thrown when fails to make API call /// The name of chain /// /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async Task> BackfillWithHttpInfoAsync(string chainName, - BackfillRequest backfillRequest, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> BackfillWithHttpInfoAsync(string chainName, BackfillRequest backfillRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->Backfill"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->Backfill"); // verify the required parameter 'backfillRequest' is set if (backfillRequest == null) - throw new ApiException(400, - "Missing required parameter 'backfillRequest' when calling SearchApi->Backfill"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'backfillRequest' when calling SearchApi->Backfill"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { "application/json" }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter localVarRequestOptions.Data = backfillRequest; // make the HTTP request - var task = AsynchronousClient.PostAsync("/v1/internal/chains/{chain_name}/backfill", - localVarRequestOptions, Configuration, cancellationToken); + var task = this.AsynchronousClient.PostAsync("/v1/internal/chains/{chain_name}/backfill", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -665,9 +543,9 @@ public async Task> BackfillWithHttpInfoAsync(string chainNam var localVarResponse = await task; #endif - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("Backfill", localVarResponse); + Exception _exception = this.ExceptionFactory("Backfill", localVarResponse); if (_exception != null) throw _exception; } @@ -675,91 +553,74 @@ public async Task> BackfillWithHttpInfoAsync(string chainNam } /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids + /// Get pricing data for a list of token ids Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForNFTsResult - public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, - string? pageCursor = default) + public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) { - var localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + Immutable.Search.Client.ApiResponse localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); return localVarResponse.Data; } /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids + /// Get pricing data for a list of token ids Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForNFTsResult - public ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, - List tokenId, string? pageCursor = default) + public Immutable.Search.Client.ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForNFTs"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->QuotesForNFTs"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForNFTs"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForNFTs"); // verify the required parameter 'tokenId' is set if (tokenId == null) - throw new ApiException(400, - "Missing required parameter 'tokenId' when calling SearchApi->QuotesForNFTs"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'tokenId' when calling SearchApi->QuotesForNFTs"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Search.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } // make the HTTP request - var localVarResponse = Client.Get( - "/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, - Configuration); + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration); - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("QuotesForNFTs", localVarResponse); + Exception _exception = this.ExceptionFactory("QuotesForNFTs", localVarResponse); if (_exception != null) throw _exception; } @@ -767,25 +628,20 @@ public ApiResponse QuotesForNFTsWithHttpInfo(string chainNa } /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids + /// Get pricing data for a list of token ids Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForNFTsResult - public async Task QuotesForNFTsAsync(string chainName, string contractAddress, - List tokenId, string? pageCursor = default, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, pageCursor, - cancellationToken); + var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, pageCursor, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); + Immutable.Search.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else Immutable.Search.Client.ApiResponse localVarResponse = await task; #endif @@ -793,73 +649,59 @@ public async Task QuotesForNFTsAsync(string chainName, stri } /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids + /// Get pricing data for a list of token ids Get pricing data for a list of token ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForNFTsResult) - public async Task> QuotesForNFTsWithHttpInfoAsync(string chainName, - string contractAddress, List tokenId, string? pageCursor = default, - CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForNFTs"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->QuotesForNFTs"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForNFTs"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForNFTs"); // verify the required parameter 'tokenId' is set if (tokenId == null) - throw new ApiException(400, - "Missing required parameter 'tokenId' when calling SearchApi->QuotesForNFTs"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'tokenId' when calling SearchApi->QuotesForNFTs"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Search.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } // make the HTTP request - var task = AsynchronousClient.GetAsync( - "/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, - Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -867,9 +709,9 @@ public async Task> QuotesForNFTsWithHttpInfoAsy var localVarResponse = await task; #endif - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("QuotesForNFTs", localVarResponse); + Exception _exception = this.ExceptionFactory("QuotesForNFTs", localVarResponse); if (_exception != null) throw _exception; } @@ -877,91 +719,74 @@ public async Task> QuotesForNFTsWithHttpInfoAsy } /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForStacksResult - public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, - string? pageCursor = default) + public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) { - var localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + Immutable.Search.Client.ApiResponse localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); return localVarResponse.Data; } /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForStacksResult - public ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, - List stackId, string? pageCursor = default) + public Immutable.Search.Client.ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->QuotesForStacks"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForStacks"); // verify the required parameter 'stackId' is set if (stackId == null) - throw new ApiException(400, - "Missing required parameter 'stackId' when calling SearchApi->QuotesForStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'stackId' when calling SearchApi->QuotesForStacks"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Search.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } // make the HTTP request - var localVarResponse = Client.Get( - "/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, - Configuration); + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration); - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("QuotesForStacks", localVarResponse); + Exception _exception = this.ExceptionFactory("QuotesForStacks", localVarResponse); if (_exception != null) throw _exception; } @@ -969,25 +794,20 @@ public ApiResponse QuotesForStacksWithHttpInfo(string cha } /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForStacksResult - public async Task QuotesForStacksAsync(string chainName, string contractAddress, - List stackId, string? pageCursor = default, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, pageCursor, - cancellationToken); + var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, pageCursor, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); + Immutable.Search.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else Immutable.Search.Client.ApiResponse localVarResponse = await task; #endif @@ -995,73 +815,59 @@ public async Task QuotesForStacksAsync(string chainName, } /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids + /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids /// /// Thrown when fails to make API call /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForStacksResult) - public async Task> QuotesForStacksWithHttpInfoAsync(string chainName, - string contractAddress, List stackId, string? pageCursor = default, - CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->QuotesForStacks"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForStacks"); // verify the required parameter 'stackId' is set if (stackId == null) - throw new ApiException(400, - "Missing required parameter 'stackId' when calling SearchApi->QuotesForStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'stackId' when calling SearchApi->QuotesForStacks"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Search.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } // make the HTTP request - var task = AsynchronousClient.GetAsync( - "/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, - Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -1069,9 +875,9 @@ public async Task> QuotesForStacksWithHttpInf var localVarResponse = await task; #endif - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("QuotesForStacks", localVarResponse); + Exception _exception = this.ExceptionFactory("QuotesForStacks", localVarResponse); if (_exception != null) throw _exception; } @@ -1079,121 +885,97 @@ public async Task> QuotesForStacksWithHttpInf } /// - /// Search NFT stacks Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// SearchStacksResult - public SearchStacksResult SearchStacks(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default) + public SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) { - var localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, - onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor); + Immutable.Search.Client.ApiResponse localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor); return localVarResponse.Data; } /// - /// Search NFT stacks Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of SearchStacksResult - public ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default) + public Immutable.Search.Client.ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->SearchStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->SearchStacks"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->SearchStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling SearchApi->SearchStacks"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); if (accountAddress != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } if (onlyIncludeOwnerListings != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } if (trait != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "trait", trait)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "trait", trait)); + } if (keyword != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + } if (pageSize != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } // make the HTTP request - var localVarResponse = Client.Get("/experimental/chains/{chain_name}/search/stacks", - localVarRequestOptions, Configuration); + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration); - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("SearchStacks", localVarResponse); + Exception _exception = this.ExceptionFactory("SearchStacks", localVarResponse); if (_exception != null) throw _exception; } @@ -1201,38 +983,24 @@ public ApiResponse SearchStacksWithHttpInfo(string chainName } /// - /// Search NFT stacks Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of SearchStacksResult - public async Task SearchStacksAsync(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, - onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor, cancellationToken); + var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); + Immutable.Search.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else Immutable.Search.Client.ApiResponse localVarResponse = await task; #endif @@ -1240,91 +1008,78 @@ public async Task SearchStacksAsync(string chainName, List - /// Search NFT stacks Search NFT stacks + /// Search NFT stacks Search NFT stacks /// /// Thrown when fails to make API call /// The name of chain /// List of contract addresses to filter by /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// + /// Whether to the listings should include only the owner created listings (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (SearchStacksResult) - public async Task> SearchStacksWithHttpInfoAsync(string chainName, - List contractAddress, string? accountAddress = default, bool? onlyIncludeOwnerListings = default, - string? trait = default, string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->SearchStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->SearchStacks"); // verify the required parameter 'contractAddress' is set if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->SearchStacks"); + throw new Immutable.Search.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling SearchApi->SearchStacks"); - var localVarRequestOptions = new RequestOptions(); + Immutable.Search.Client.RequestOptions localVarRequestOptions = new Immutable.Search.Client.RequestOptions(); - string[] _contentTypes = - { + string[] _contentTypes = new string[] { }; // to determine the Accept header - string[] _accepts = - { + string[] _accepts = new string[] { "application/json" }; - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + var localVarContentType = Immutable.Search.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = Immutable.Search.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Search.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); if (accountAddress != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } if (onlyIncludeOwnerListings != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } if (trait != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "trait", trait)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "trait", trait)); + } if (keyword != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + } if (pageSize != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + { + localVarRequestOptions.QueryParameters.Add(Immutable.Search.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } // make the HTTP request - var task = AsynchronousClient.GetAsync( - "/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, Configuration, - cancellationToken); + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -1332,13 +1087,14 @@ public async Task> SearchStacksWithHttpInfoAsync var localVarResponse = await task; #endif - if (ExceptionFactory != null) + if (this.ExceptionFactory != null) { - var _exception = ExceptionFactory("SearchStacks", localVarResponse); + Exception _exception = this.ExceptionFactory("SearchStacks", localVarResponse); if (_exception != null) throw _exception; } return localVarResponse; } + } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs index d0f9f491..9ecd4902 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs @@ -10,31 +10,37 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Net; -using System.Net.Http; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters; +using System.Text; using System.Threading; +using System.Text.RegularExpressions; using System.Threading.Tasks; -using Immutable.Search.Model; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -using UnityEngine; +using ErrorEventArgs = Newtonsoft.Json.Serialization.ErrorEventArgs; +using System.Net.Http; +using System.Net.Http.Headers; using UnityEngine.Networking; +using UnityEngine; namespace Immutable.Search.Client { /// - /// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. + /// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. /// internal class CustomJsonCodec { - private static readonly string _contentType = "application/json"; private readonly IReadableConfiguration _configuration; - - private readonly JsonSerializerSettings _serializerSettings = new() + private static readonly string _contentType = "application/json"; + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, @@ -58,37 +64,32 @@ public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfi _configuration = configuration; } - public string RootElement { get; set; } - public string Namespace { get; set; } - public string DateFormat { get; set; } - - public string ContentType - { - get => _contentType; - set => throw new InvalidOperationException("Not allowed to set content type."); - } - /// - /// Serialize the object into a JSON string. + /// Serialize the object into a JSON string. /// /// Object to be serialized. /// A JSON string. public string Serialize(object obj) { - if (obj != null && obj is AbstractOpenAPISchema) + if (obj != null && obj is Immutable.Search.Model.AbstractOpenAPISchema) + { // the object to be serialized is an oneOf/anyOf schema - return ((AbstractOpenAPISchema)obj).ToJson(); - return JsonConvert.SerializeObject(obj, _serializerSettings); + return ((Immutable.Search.Model.AbstractOpenAPISchema)obj).ToJson(); + } + else + { + return JsonConvert.SerializeObject(obj, _serializerSettings); + } } public T Deserialize(UnityWebRequest request) { - var result = (T)Deserialize(request, typeof(T)); + var result = (T) Deserialize(request, typeof(T)); return result; } /// - /// Deserialize the JSON string into a proper object. + /// Deserialize the JSON string into a proper object. /// /// The UnityWebRequest after it has a response. /// Object type. @@ -96,19 +97,27 @@ public T Deserialize(UnityWebRequest request) internal object Deserialize(UnityWebRequest request, Type type) { if (type == typeof(byte[])) // return byte array + { return request.downloadHandler.data; + } // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) if (type == typeof(Stream)) + { // NOTE: Ignoring Content-Disposition filename support, since not all platforms // have a location on disk to write arbitrary data (tvOS, consoles). return new MemoryStream(request.downloadHandler.data); + } if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object - return DateTime.Parse(request.downloadHandler.text, null, DateTimeStyles.RoundtripKind); + { + return DateTime.Parse(request.downloadHandler.text, null, System.Globalization.DateTimeStyles.RoundtripKind); + } if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type + { return Convert.ChangeType(request.downloadHandler.text, type); + } var contentType = request.GetResponseHeader("Content-Type"); @@ -117,9 +126,13 @@ internal object Deserialize(UnityWebRequest request, Type type) var text = request.downloadHandler?.text; // Generated APIs that don't expect a return value provide System.Object as the type - if (type == typeof(object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) return null; + if (type == typeof(global::System.Object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) + { + return null; + } if (request.responseCode >= 200 && request.responseCode < 300) + { try { // Deserialize as a model @@ -129,38 +142,70 @@ internal object Deserialize(UnityWebRequest request, Type type) { throw new UnexpectedResponseException(request, type, e.ToString()); } - - throw new ApiException((int)request.responseCode, request.error, text); + } + else + { + throw new ApiException((int)request.responseCode, request.error, text); + } } - - if (type != typeof(object) && request.responseCode >= 200 && request.responseCode < 300) + + if (type != typeof(global::System.Object) && request.responseCode >= 200 && request.responseCode < 300) + { throw new UnexpectedResponseException(request, type); + } return null; + } - } + public string RootElement { get; set; } + public string Namespace { get; set; } + public string DateFormat { get; set; } + + public string ContentType + { + get { return _contentType; } + set { throw new InvalidOperationException("Not allowed to set content type."); } + } + } /// - /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), - /// encapsulating general REST accessor use cases. + /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), + /// encapsulating general REST accessor use cases. /// /// - /// The Dispose method will manage the HttpClient lifecycle when not passed by constructor. + /// The Dispose method will manage the HttpClient lifecycle when not passed by constructor. /// public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient { private readonly string _baseUrl; /// - /// Initializes a new instance of the , defaulting to the global configurations' base url. + /// Specifies the settings on a object. + /// These settings can be adjusted to accommodate custom serialization rules. + /// + public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Initializes a new instance of the , defaulting to the global configurations' base url. /// public ApiClient() : - this(GlobalConfiguration.Instance.BasePath) + this(Immutable.Search.Client.GlobalConfiguration.Instance.BasePath) { } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// /// The target service's base path in URL format. /// @@ -172,41 +217,22 @@ public ApiClient(string basePath) } /// - /// Specifies the settings on a object. - /// These settings can be adjusted to accommodate custom serialization rules. - /// - public JsonSerializerSettings SerializerSettings { get; set; } = new() - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver - { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } - }; - - /// - /// Disposes resources if they were created by us + /// Disposes resources if they were created by us /// public void Dispose() { } /// - /// Provides all logic for constructing a new UnityWebRequest. - /// At this point, all information for querying the service is known. Here, it is simply - /// mapped into the UnityWebRequest. + /// Provides all logic for constructing a new UnityWebRequest. + /// At this point, all information for querying the service is known. Here, it is simply + /// mapped into the UnityWebRequest. /// /// The http verb. /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// [private] A new UnityWebRequest instance. /// private UnityWebRequest NewRequest( @@ -219,7 +245,7 @@ private UnityWebRequest NewRequest( if (options == null) throw new ArgumentNullException("options"); if (configuration == null) throw new ArgumentNullException("configuration"); - var builder = new WebRequestPathBuilder(_baseUrl, path); + WebRequestPathBuilder builder = new WebRequestPathBuilder(_baseUrl, path); builder.AddPathParameters(options.PathParameters); @@ -239,7 +265,9 @@ private UnityWebRequest NewRequest( { var formData = new List(); foreach (var formParameter in options.FormParameters) + { formData.Add(new MultipartFormDataSection(formParameter.Key, formParameter.Value)); + } request = UnityWebRequest.Post(uri, formData); request.method = method; @@ -247,7 +275,10 @@ private UnityWebRequest NewRequest( else if (contentType == "application/x-www-form-urlencoded") { var form = new WWWForm(); - foreach (var kvp in options.FormParameters) form.AddField(kvp.Key, kvp.Value); + foreach (var kvp in options.FormParameters) + { + form.AddField(kvp.Key, kvp.Value); + } request = UnityWebRequest.Post(uri, form); request.method = method; @@ -268,49 +299,64 @@ private UnityWebRequest NewRequest( request = new UnityWebRequest(builder.GetFullUri(), method); } - if (request.downloadHandler == null && typeof(T) != typeof(object)) + if (request.downloadHandler == null && typeof(T) != typeof(global::System.Object)) + { request.downloadHandler = new DownloadHandlerBuffer(); + } #if UNITY_EDITOR || !UNITY_WEBGL - if (configuration.UserAgent != null) request.SetRequestHeader("User-Agent", configuration.UserAgent); + if (configuration.UserAgent != null) + { + request.SetRequestHeader("User-Agent", configuration.UserAgent); + } #endif if (configuration.DefaultHeaders != null) + { foreach (var headerParam in configuration.DefaultHeaders) + { request.SetRequestHeader(headerParam.Key, headerParam.Value); + } + } if (options.HeaderParameters != null) + { foreach (var headerParam in options.HeaderParameters) + { foreach (var value in headerParam.Value) + { // Todo make content headers actually content headers request.SetRequestHeader(headerParam.Key, value); + } + } + } if (options.Cookies != null && options.Cookies.Count > 0) { -#if UNITY_WEBGL + #if UNITY_WEBGL throw new System.InvalidOperationException("UnityWebRequest does not support setting cookies in WebGL"); -#else - if (options.Cookies.Count != 1) Debug.LogError("Only one cookie supported, ignoring others"); + #else + if (options.Cookies.Count != 1) + { + UnityEngine.Debug.LogError("Only one cookie supported, ignoring others"); + } request.SetRequestHeader("Cookie", options.Cookies[0].ToString()); -#endif + #endif } return request; - } - partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, - IReadableConfiguration configuration); + } - partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, - IReadableConfiguration configuration, ref object responseData); + partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration); + partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData); private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) { - var result = (T)responseData; + T result = (T) responseData; - var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap(), - result, request.downloadHandler?.text ?? "") + var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap(), result, request.downloadHandler?.text ?? "") { ErrorText = request.error, Cookies = new List() @@ -319,8 +365,12 @@ private ApiResponse ToApiResponse(UnityWebRequest request, object response // process response headers, e.g. Access-Control-Allow-Methods var responseHeaders = request.GetResponseHeaders(); if (responseHeaders != null) + { foreach (var responseHeader in request.GetResponseHeaders()) + { transformed.Headers.Add(responseHeader.Key, ClientUtils.ParameterToString(responseHeader.Value)); + } + } return transformed; } @@ -330,51 +380,62 @@ private async Task> ExecAsync( string path, RequestOptions options, IReadableConfiguration configuration, - CancellationToken cancellationToken = default) + System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var deserializer = new CustomJsonCodec(SerializerSettings, configuration); using (request) { - if (configuration.Timeout > 0) request.timeout = (int)Math.Ceiling(configuration.Timeout / 1000.0f); + if (configuration.Timeout > 0) + { + request.timeout = (int)Math.Ceiling(configuration.Timeout / 1000.0f); + } if (configuration.Proxy != null) + { throw new InvalidOperationException("Configuration `Proxy` not supported by UnityWebRequest"); + } if (configuration.ClientCertificates != null) + { // Only Android/iOS/tvOS/Standalone players can support certificates, and this // implementation is intended to work on all platforms. // // TODO: Could optionally allow support for this on these platforms. // // See: https://docs.unity3d.com/ScriptReference/Networking.CertificateHandler.html - throw new InvalidOperationException( - "Configuration `ClientCertificates` not supported by UnityWebRequest on all platforms"); + throw new InvalidOperationException("Configuration `ClientCertificates` not supported by UnityWebRequest on all platforms"); + } InterceptRequest(request, path, options, configuration); var asyncOp = request.SendWebRequest(); - var tsc = new TaskCompletionSource(); - asyncOp.completed += _ => tsc.TrySetResult(request.result); + TaskCompletionSource tsc = new TaskCompletionSource(); + asyncOp.completed += (_) => tsc.TrySetResult(request.result); using (var tokenRegistration = cancellationToken.Register(request.Abort, true)) { await tsc.Task; } - + if (request.result == UnityWebRequest.Result.ConnectionError || request.result == UnityWebRequest.Result.DataProcessingError) + { throw new ConnectionException(request); + } object responseData = deserializer.Deserialize(request); // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - responseData = (T)typeof(T).GetMethod("FromJson").Invoke(null, - new object[] { new ByteArrayContent(request.downloadHandler.data) }); + if (typeof(Immutable.Search.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + { + responseData = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); + } else if (typeof(T).Name == "Stream") // for binary response - responseData = (T)(object)new MemoryStream(request.downloadHandler.data); + { + responseData = (T) (object) new MemoryStream(request.downloadHandler.data); + } InterceptResponse(request, path, options, configuration, ref responseData); @@ -383,247 +444,203 @@ private async Task> ExecAsync( } #region IAsynchronousClient - /// - /// Make a HTTP GET request (async). + /// Make a HTTP GET request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("GET", path, options, config), path, options, config, cancellationToken); } /// - /// Make a HTTP POST request (async). + /// Make a HTTP POST request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("POST", path, options, config), path, options, config, cancellationToken); } /// - /// Make a HTTP PUT request (async). + /// Make a HTTP PUT request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("PUT", path, options, config), path, options, config, cancellationToken); } /// - /// Make a HTTP DELETE request (async). + /// Make a HTTP DELETE request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("DELETE", path, options, config), path, options, config, - cancellationToken); + return ExecAsync(NewRequest("DELETE", path, options, config), path, options, config, cancellationToken); } /// - /// Make a HTTP HEAD request (async). + /// Make a HTTP HEAD request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest("HEAD", path, options, config), path, options, config, cancellationToken); } /// - /// Make a HTTP OPTION request (async). + /// Make a HTTP OPTION request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("OPTIONS", path, options, config), path, options, config, - cancellationToken); + return ExecAsync(NewRequest("OPTIONS", path, options, config), path, options, config, cancellationToken); } /// - /// Make a HTTP PATCH request (async). + /// Make a HTTP PATCH request (async). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("PATCH", path, options, config), path, options, config, - cancellationToken); + return ExecAsync(NewRequest("PATCH", path, options, config), path, options, config, cancellationToken); } - #endregion IAsynchronousClient #region ISynchronousClient - /// - /// Make a HTTP GET request (synchronous). + /// Make a HTTP GET request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } /// - /// Make a HTTP POST request (synchronous). + /// Make a HTTP POST request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } /// - /// Make a HTTP PUT request (synchronous). + /// Make a HTTP PUT request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } /// - /// Make a HTTP DELETE request (synchronous). + /// Make a HTTP DELETE request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Delete(string path, RequestOptions options, - IReadableConfiguration configuration = null) + public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } /// - /// Make a HTTP HEAD request (synchronous). + /// Make a HTTP HEAD request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } /// - /// Make a HTTP OPTION request (synchronous). + /// Make a HTTP OPTION request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse - public ApiResponse Options(string path, RequestOptions options, - IReadableConfiguration configuration = null) + public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } /// - /// Make a HTTP PATCH request (synchronous). + /// Make a HTTP PATCH request (synchronous). /// /// The target path (or resource). /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. /// A Task containing ApiResponse public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); } - #endregion ISynchronousClient } } \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs index f8478923..5dc0539f 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs @@ -14,58 +14,56 @@ namespace Immutable.Search.Client { /// - /// API Exception + /// API Exception /// public class ApiException : Exception { /// - /// Initializes a new instance of the class. + /// Gets or sets the error code (HTTP status code) /// - public ApiException() - { - } + /// The error code (HTTP status code). + public int ErrorCode { get; set; } + + /// + /// Gets or sets the error content (body json object) + /// + /// The error content (Http response body). + public object ErrorContent { get; private set; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// HTTP status code. /// Error message. public ApiException(int errorCode, string message) : base(message) { - ErrorCode = errorCode; + this.ErrorCode = errorCode; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// HTTP status code. /// Error message. /// Error content. /// HTTP Headers. - public ApiException(int errorCode, string message, object errorContent = null, - Multimap headers = null) : base(message) + public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) { - ErrorCode = errorCode; - ErrorContent = errorContent; - Headers = headers; + this.ErrorCode = errorCode; + this.ErrorContent = errorContent; + this.Headers = headers; } - - /// - /// Gets or sets the error code (HTTP status code) - /// - /// The error code (HTTP status code). - public int ErrorCode { get; set; } - - /// - /// Gets or sets the error content (body json object) - /// - /// The error content (Http response body). - public object ErrorContent { get; private set; } - - /// - /// Gets or sets the HTTP headers - /// - /// HTTP headers - public Multimap Headers { get; private set; } } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs index 54c5de9f..1e0c91af 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs @@ -16,95 +16,101 @@ namespace Immutable.Search.Client { /// - /// Provides a non-generic contract for the ApiResponse wrapper. + /// Provides a non-generic contract for the ApiResponse wrapper. /// public interface IApiResponse { /// - /// The data type of + /// The data type of /// Type ResponseType { get; } /// - /// The content of this response + /// The content of this response /// - object Content { get; } + Object Content { get; } /// - /// Gets or sets the status code (HTTP status code) + /// Gets or sets the status code (HTTP status code) /// /// The status code. HttpStatusCode StatusCode { get; } /// - /// Gets or sets the HTTP headers + /// Gets or sets the HTTP headers /// /// HTTP headers Multimap Headers { get; } /// - /// Gets or sets any error text defined by the calling client. + /// Gets or sets any error text defined by the calling client. /// string ErrorText { get; set; } /// - /// Gets or sets any cookies passed along on the response. + /// Gets or sets any cookies passed along on the response. /// List Cookies { get; set; } /// - /// The raw content of this response + /// The raw content of this response /// string RawContent { get; } } /// - /// API Response + /// API Response /// public class ApiResponse : IApiResponse { #region Properties /// - /// Gets or sets the status code (HTTP status code) + /// Gets or sets the status code (HTTP status code) /// /// The status code. public HttpStatusCode StatusCode { get; } /// - /// Gets or sets the HTTP headers + /// Gets or sets the HTTP headers /// /// HTTP headers public Multimap Headers { get; } /// - /// Gets or sets the data (parsed HTTP body) + /// Gets or sets the data (parsed HTTP body) /// /// The data. public T Data { get; } /// - /// Gets or sets any error text defined by the calling client. + /// Gets or sets any error text defined by the calling client. /// public string ErrorText { get; set; } /// - /// Gets or sets any cookies passed along on the response. + /// Gets or sets any cookies passed along on the response. /// public List Cookies { get; set; } /// - /// The content of this response + /// The content of this response /// - public Type ResponseType => typeof(T); + public Type ResponseType + { + get { return typeof(T); } + } /// - /// The data type of + /// The data type of /// - public object Content => Data; + public object Content + { + get { return Data; } + } /// - /// The raw content + /// The raw content /// public string RawContent { get; } @@ -113,7 +119,7 @@ public class ApiResponse : IApiResponse #region Constructors /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// HTTP status code. /// HTTP headers. @@ -128,29 +134,27 @@ public ApiResponse(HttpStatusCode statusCode, Multimap headers, } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// HTTP status code. /// HTTP headers. /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, - headers, data, null) + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, headers, data, null) { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// HTTP status code. /// Data (parsed HTTP body) /// Raw content. - public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, - rawContent) + public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, rawContent) { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// HTTP status code. /// Data (parsed HTTP body) @@ -160,4 +164,4 @@ public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, n #endregion Constructors } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs index 94eb607d..9404748b 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs @@ -18,34 +18,28 @@ using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; -using Newtonsoft.Json; namespace Immutable.Search.Client { /// - /// Utility functions providing some benefit to API client consumers. + /// Utility functions providing some benefit to API client consumers. /// public static class ClientUtils { /// - /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. - /// - public static readonly Regex JsonRegex = new("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); - - /// - /// Sanitize filename by removing the path + /// Sanitize filename by removing the path /// /// Filename /// Filename public static string SanitizeFilename(string filename) { - var match = Regex.Match(filename, @".*[/\\](.*)$"); + Match match = Regex.Match(filename, @".*[/\\](.*)$"); return match.Success ? match.Groups[1].Value : filename; } /// - /// Convert params to key/value pairs. - /// Use collectionFormat to properly format lists and collections. + /// Convert params to key/value pairs. + /// Use collectionFormat to properly format lists and collections. /// /// The swagger-supported collection format, one of: csv, tsv, ssv, pipes, multi /// Key name. @@ -57,16 +51,25 @@ public static Multimap ParameterToMultiMap(string collectionForm if (value is ICollection collection && collectionFormat == "multi") { - foreach (var item in collection) parameters.Add(name, ParameterToString(item)); + foreach (var item in collection) + { + parameters.Add(name, ParameterToString(item)); + } } else if (value is IDictionary dictionary) { - if (collectionFormat == "deepObject") + if(collectionFormat == "deepObject") { foreach (DictionaryEntry entry in dictionary) + { parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); - else + } + } + else { foreach (DictionaryEntry entry in dictionary) + { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); + } + } } else { @@ -77,10 +80,9 @@ public static Multimap ParameterToMultiMap(string collectionForm } /// - /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with - /// Configuration.DateTime. - /// If parameter is a list, join the list with ",". - /// Otherwise just return the string. + /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. + /// If parameter is a list, join the list with ",". + /// Otherwise just return the string. /// /// The parameter (header, path, query, form). /// An optional configuration instance, providing formatting options used in processing. @@ -101,14 +103,12 @@ public static string ParameterToString(object obj, IReadableConfiguration config return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) - { - var entries = new List(); + if (obj is ICollection collection) { + List entries = new List(); foreach (var entry in collection) entries.Add(ParameterToString(entry, configuration)); return string.Join(",", entries); } - if (obj is Enum && HasEnumMemberAttrValue(obj)) return GetEnumMemberAttrValue(obj); @@ -116,27 +116,27 @@ public static string ParameterToString(object obj, IReadableConfiguration config } /// - /// Serializes the given object when not null. Otherwise return null. + /// Serializes the given object when not null. Otherwise return null. /// /// The object to serialize. /// Serialized string. public static string Serialize(object obj) { - return obj != null ? JsonConvert.SerializeObject(obj) : null; + return obj != null ? Newtonsoft.Json.JsonConvert.SerializeObject(obj) : null; } /// - /// Encode string in base64 format. + /// Encode string in base64 format. /// /// string to be encoded. /// Encoded string. public static string Base64Encode(string text) { - return Convert.ToBase64String(Encoding.UTF8.GetBytes(text)); + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); } /// - /// Convert stream to byte array + /// Convert stream to byte array /// /// Input stream to be converted /// Byte array @@ -150,9 +150,9 @@ public static byte[] ReadAsBytes(Stream inputStream) } /// - /// Select the Content-Type header's value from the given content-type array: - /// if JSON type exists in the given array, use it; - /// otherwise use the first one defined in 'consumes' + /// Select the Content-Type header's value from the given content-type array: + /// if JSON type exists in the given array, use it; + /// otherwise use the first one defined in 'consumes' /// /// The Content-Type array to select from. /// The Content-Type header to use. @@ -162,16 +162,18 @@ public static string SelectHeaderContentType(string[] contentTypes) return null; foreach (var contentType in contentTypes) + { if (IsJsonMime(contentType)) return contentType; + } return contentTypes[0]; // use the first content type specified in 'consumes' } /// - /// Select the Accept header's value from the given accepts array: - /// if JSON exists in the given array, use it; - /// otherwise use all of them (joining into a string) + /// Select the Accept header's value from the given accepts array: + /// if JSON exists in the given array, use it; + /// otherwise use all of them (joining into a string) /// /// The accepts array to select from. /// The Accept header to use. @@ -187,12 +189,17 @@ public static string SelectHeaderAccept(string[] accepts) } /// - /// Check if the given MIME is a JSON MIME. - /// JSON MIME examples: - /// application/json - /// application/json; charset=UTF8 - /// APPLICATION/JSON - /// application/vnd.company+json + /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. + /// + public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + + /// + /// Check if the given MIME is a JSON MIME. + /// JSON MIME examples: + /// application/json + /// application/json; charset=UTF8 + /// APPLICATION/JSON + /// application/vnd.company+json /// /// MIME /// Returns True if MIME type is json. @@ -204,7 +211,7 @@ public static bool IsJsonMime(string mime) } /// - /// Is the Enum decorated with EnumMember Attribute + /// Is the Enum decorated with EnumMember Attribute /// /// /// true if found @@ -214,14 +221,13 @@ private static bool HasEnumMemberAttrValue(object enumVal) throw new ArgumentNullException(nameof(enumVal)); var enumType = enumVal.GetType(); var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); - var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType() - .FirstOrDefault(); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); if (attr != null) return true; - return false; + return false; } /// - /// Get the EnumMember value + /// Get the EnumMember value /// /// /// EnumMember value as string otherwise null @@ -231,10 +237,12 @@ private static string GetEnumMemberAttrValue(object enumVal) throw new ArgumentNullException(nameof(enumVal)); var enumType = enumVal.GetType(); var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); - var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType() - .FirstOrDefault(); - if (attr != null) return attr.Value; + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) + { + return attr.Value; + } return null; } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs index 0bf5ca46..1be54412 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs @@ -12,119 +12,82 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net; -using System.Net.Security; +using System.Reflection; using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Net.Http; +using System.Net.Security; namespace Immutable.Search.Client { /// - /// Represents a set of configuration settings + /// Represents a set of configuration settings /// public class Configuration : IReadableConfiguration { + #region Constants + + /// + /// Version of the package. + /// + /// Version of the package. + public const string Version = "1.0.0"; + + /// + /// Identifier for ISO 8601 DateTime Format + /// + /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. + // ReSharper disable once InconsistentNaming + public const string ISO8601_DATETIME_FORMAT = "o"; + + #endregion Constants + #region Static Members /// - /// Default creation of exceptions for a given method name and response object + /// Default creation of exceptions for a given method name and response object /// public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => { var status = (int)response.StatusCode; if (status >= 400) + { return new ApiException(status, string.Format("Error calling {0}: {1}", methodName, response.RawContent), response.RawContent, response.Headers); + } if (status == 0) + { return new ApiException(status, string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText); + } return null; }; #endregion Static Members - #region Static Members - - /// - /// Merge configurations. - /// - /// First configuration. - /// Second configuration. - /// Merged configuration. - public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, - IReadableConfiguration second) - { - if (second == null) return first ?? GlobalConfiguration.Instance; - - var apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - var apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - var defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - - foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; - foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; - foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; - - var config = new Configuration - { - ApiKey = apiKey, - ApiKeyPrefix = apiKeyPrefix, - DefaultHeaders = defaultHeaders, - BasePath = second.BasePath ?? first.BasePath, - Timeout = second.Timeout, - Proxy = second.Proxy ?? first.Proxy, - UserAgent = second.UserAgent ?? first.UserAgent, - Username = second.Username ?? first.Username, - Password = second.Password ?? first.Password, - AccessToken = second.AccessToken ?? first.AccessToken, - TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, - ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, - UseDefaultCredentials = second.UseDefaultCredentials, - RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? - first.RemoteCertificateValidationCallback - }; - return config; - } - - #endregion Static Members - - #region Constants - - /// - /// Version of the package. - /// - /// Version of the package. - public const string Version = "1.0.0"; - - /// - /// Identifier for ISO 8601 DateTime Format - /// - /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. - // ReSharper disable once InconsistentNaming - public const string ISO8601_DATETIME_FORMAT = "o"; - - #endregion Constants - #region Private Members /// - /// Defines the base path of the target API server. - /// Example: http://localhost:3000/v1/ + /// Defines the base path of the target API server. + /// Example: http://localhost:3000/v1/ /// private string _basePath; + private bool _useDefaultCredentials = false; + /// - /// Gets or sets the API key based on the authentication name. - /// This is the key and value comprising the "secret" for accessing an API. + /// Gets or sets the API key based on the authentication name. + /// This is the key and value comprising the "secret" for accessing an API. /// /// The API key. private IDictionary _apiKey; /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. /// /// The prefix of the API key. private IDictionary _apiKeyPrefix; @@ -133,13 +96,13 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration private string _tempFolderPath = Path.GetTempPath(); /// - /// Gets or sets the servers defined in the OpenAPI spec. + /// Gets or sets the servers defined in the OpenAPI spec. /// /// The servers private IList> _servers; /// - /// Gets or sets the operation servers defined in the OpenAPI spec. + /// Gets or sets the operation servers defined in the OpenAPI spec. /// /// The operation servers private IReadOnlyDictionary>> _operationServers; @@ -149,9 +112,9 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration #region Constructors /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// - [SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { Proxy = null; @@ -160,34 +123,39 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); - Servers = new List> + Servers = new List>() { - new Dictionary { - { "url", "https://api.immutable.com" }, - { "description", "Production" } + new Dictionary { + {"url", "https://api.immutable.com"}, + {"description", "Production"}, + } }, - new Dictionary { - { "url", "https://api.sandbox.immutable.com" }, - { "description", "Sandbox" } + new Dictionary { + {"url", "https://api.sandbox.immutable.com"}, + {"description", "Sandbox"}, + } }, - new Dictionary { - { "url", "https://api.dev.immutable.com" }, - { "description", "Development" } + new Dictionary { + {"url", "https://api.dev.immutable.com"}, + {"description", "Development"}, + } } }; - OperationServers = new Dictionary>>(); + OperationServers = new Dictionary>>() + { + }; // Setting Timeout has side effects (forces ApiClient creation). Timeout = 100000; } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// - [SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration( IDictionary defaultHeaders, IDictionary apiKey, @@ -205,11 +173,20 @@ public Configuration( BasePath = basePath; - foreach (var keyValuePair in defaultHeaders) DefaultHeaders.Add(keyValuePair); + foreach (var keyValuePair in defaultHeaders) + { + DefaultHeaders.Add(keyValuePair); + } - foreach (var keyValuePair in apiKey) ApiKey.Add(keyValuePair); + foreach (var keyValuePair in apiKey) + { + ApiKey.Add(keyValuePair); + } - foreach (var keyValuePair in apiKeyPrefix) ApiKeyPrefix.Add(keyValuePair); + foreach (var keyValuePair in apiKeyPrefix) + { + ApiKeyPrefix.Add(keyValuePair); + } } #endregion Constructors @@ -217,66 +194,75 @@ public Configuration( #region Properties /// - /// Gets or sets the base path for API access. + /// Gets or sets the base path for API access. /// - public virtual string BasePath + public virtual string BasePath { - get => _basePath; - set => _basePath = value; + get { return _basePath; } + set { _basePath = value; } } /// - /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is - /// running) will be sent along to the server. The default is false. + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. /// - public virtual bool UseDefaultCredentials { get; set; } + public virtual bool UseDefaultCredentials + { + get { return _useDefaultCredentials; } + set { _useDefaultCredentials = value; } + } /// - /// Gets or sets the default header. + /// Gets or sets the default header. /// [Obsolete("Use DefaultHeaders instead.")] public virtual IDictionary DefaultHeader { - get => DefaultHeaders; - set => DefaultHeaders = value; + get + { + return DefaultHeaders; + } + set + { + DefaultHeaders = value; + } } /// - /// Gets or sets the default headers. + /// Gets or sets the default headers. /// public virtual IDictionary DefaultHeaders { get; set; } /// - /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. + /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. /// public virtual int Timeout { get; set; } /// - /// Gets or sets the proxy + /// Gets or sets the proxy /// /// Proxy. public virtual WebProxy Proxy { get; set; } /// - /// Gets or sets the HTTP user agent. + /// Gets or sets the HTTP user agent. /// /// Http user agent. public virtual string UserAgent { get; set; } /// - /// Gets or sets the username (HTTP basic authentication). + /// Gets or sets the username (HTTP basic authentication). /// /// The username. public virtual string Username { get; set; } /// - /// Gets or sets the password (HTTP basic authentication). + /// Gets or sets the password (HTTP basic authentication). /// /// The password. public virtual string Password { get; set; } /// - /// Gets the API key with prefix. + /// Gets the API key with prefix. /// /// API key identifier (authentication scheme). /// API key with prefix. @@ -285,31 +271,35 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) string apiKeyValue; ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue); string apiKeyPrefix; - if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) return apiKeyPrefix + " " + apiKeyValue; + if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) + { + return apiKeyPrefix + " " + apiKeyValue; + } return apiKeyValue; } /// - /// Gets or sets certificate collection to be sent with requests. + /// Gets or sets certificate collection to be sent with requests. /// /// X509 Certificate collection. public X509CertificateCollection ClientCertificates { get; set; } /// - /// Gets or sets the access token for OAuth2 authentication. - /// This helper property simplifies code generation. + /// Gets or sets the access token for OAuth2 authentication. + /// + /// This helper property simplifies code generation. /// /// The access token. public virtual string AccessToken { get; set; } /// - /// Gets or sets the temporary folder path to store the files downloaded from the server. + /// Gets or sets the temporary folder path to store the files downloaded from the server. /// /// Folder path. public virtual string TempFolderPath { - get => _tempFolderPath; + get { return _tempFolderPath; } set { @@ -320,27 +310,34 @@ public virtual string TempFolderPath } // create the directory if it does not exist - if (!Directory.Exists(value)) Directory.CreateDirectory(value); + if (!Directory.Exists(value)) + { + Directory.CreateDirectory(value); + } // check if the path contains directory separator at the end if (value[value.Length - 1] == Path.DirectorySeparatorChar) + { _tempFolderPath = value; + } else + { _tempFolderPath = value + Path.DirectorySeparatorChar; + } } } /// - /// Gets or sets the date time format used when serializing in the ApiClient - /// By default, it's set to ISO 8601 - "o", for others see: - /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx - /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx - /// No validation is done to ensure that the string you're providing is valid + /// Gets or sets the date time format used when serializing in the ApiClient + /// By default, it's set to ISO 8601 - "o", for others see: + /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx + /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx + /// No validation is done to ensure that the string you're providing is valid /// /// The DateTimeFormat string public virtual string DateTimeFormat { - get => _dateTimeFormat; + get { return _dateTimeFormat; } set { if (string.IsNullOrEmpty(value)) @@ -357,73 +354,88 @@ public virtual string DateTimeFormat } /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// Whatever you set here will be prepended to the value defined in AddApiKey. - /// An example invocation here might be: - /// - /// ApiKeyPrefix["Authorization"] = "Bearer"; - /// - /// … where ApiKey["Authorization"] would then be used to set the value of your bearer token. - /// - /// OAuth2 workflows should set tokens via AccessToken. - /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// Whatever you set here will be prepended to the value defined in AddApiKey. + /// + /// An example invocation here might be: + /// + /// ApiKeyPrefix["Authorization"] = "Bearer"; + /// + /// … where ApiKey["Authorization"] would then be used to set the value of your bearer token. + /// + /// + /// OAuth2 workflows should set tokens via AccessToken. + /// /// /// The prefix of the API key. public virtual IDictionary ApiKeyPrefix { - get => _apiKeyPrefix; + get { return _apiKeyPrefix; } set { - if (value == null) throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + if (value == null) + { + throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + } _apiKeyPrefix = value; } } /// - /// Gets or sets the API key based on the authentication name. + /// Gets or sets the API key based on the authentication name. /// /// The API key. public virtual IDictionary ApiKey { - get => _apiKey; + get { return _apiKey; } set { - if (value == null) throw new InvalidOperationException("ApiKey collection may not be null."); + if (value == null) + { + throw new InvalidOperationException("ApiKey collection may not be null."); + } _apiKey = value; } } /// - /// Gets or sets the servers. + /// Gets or sets the servers. /// /// The servers. public virtual IList> Servers { - get => _servers; + get { return _servers; } set { - if (value == null) throw new InvalidOperationException("Servers may not be null."); + if (value == null) + { + throw new InvalidOperationException("Servers may not be null."); + } _servers = value; } } /// - /// Gets or sets the operation servers. + /// Gets or sets the operation servers. /// /// The operation servers. public virtual IReadOnlyDictionary>> OperationServers { - get => _operationServers; + get { return _operationServers; } set { - if (value == null) throw new InvalidOperationException("Operation servers may not be null."); + if (value == null) + { + throw new InvalidOperationException("Operation servers may not be null."); + } _operationServers = value; } } /// - /// Returns URL based on server settings without providing values - /// for the variables + /// Returns URL based on server settings without providing values + /// for the variables /// /// Array index of the server settings. /// The server URL. @@ -433,7 +445,7 @@ public string GetServerUrl(int index) } /// - /// Returns URL based on server settings. + /// Returns URL based on server settings. /// /// Array index of the server settings. /// Dictionary of the variables and the corresponding values. @@ -444,7 +456,7 @@ public string GetServerUrl(int index, Dictionary inputVariables) } /// - /// Returns URL based on operation server settings. + /// Returns URL based on operation server settings. /// /// Operation associated with the request path. /// Array index of the server settings. @@ -455,7 +467,7 @@ public string GetOperationServerUrl(string operation, int index) } /// - /// Returns URL based on operation server settings. + /// Returns URL based on operation server settings. /// /// Operation associated with the request path. /// Array index of the server settings. @@ -464,43 +476,53 @@ public string GetOperationServerUrl(string operation, int index) public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) { if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) + { return GetServerUrl(operationServer, index, inputVariables); + } return null; } /// - /// Returns URL based on server settings. + /// Returns URL based on server settings. /// /// Dictionary of server settings. /// Array index of the server settings. /// Dictionary of the variables and the corresponding values. /// The server URL. - private string GetServerUrl(IList> servers, int index, - Dictionary inputVariables) + private string GetServerUrl(IList> servers, int index, Dictionary inputVariables) { if (index < 0 || index >= servers.Count) - throw new InvalidOperationException( - $"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); + { + throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); + } - if (inputVariables == null) inputVariables = new Dictionary(); + if (inputVariables == null) + { + inputVariables = new Dictionary(); + } - var server = servers[index]; - var url = (string)server["url"]; + IReadOnlyDictionary server = servers[index]; + string url = (string)server["url"]; if (server.ContainsKey("variables")) + { // go through each variable and assign a value - foreach (var variable in (IReadOnlyDictionary)server["variables"]) + foreach (KeyValuePair variable in (IReadOnlyDictionary)server["variables"]) { - var serverVariables = (IReadOnlyDictionary)variable.Value; + + IReadOnlyDictionary serverVariables = (IReadOnlyDictionary)(variable.Value); if (inputVariables.ContainsKey(variable.Key)) { if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) + { url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); + } else - throw new InvalidOperationException( - $"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); + { + throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); + } } else { @@ -508,12 +530,13 @@ private string GetServerUrl(IList> servers, url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); } } + } return url; } - + /// - /// Gets and Sets the RemoteCertificateValidationCallback + /// Gets and Sets the RemoteCertificateValidationCallback /// public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; } @@ -522,13 +545,13 @@ private string GetServerUrl(IList> servers, #region Methods /// - /// Returns a string with essential information for debugging. + /// Returns a string with essential information for debugging. /// public static string ToDebugReport() { - var report = "C# SDK (Immutable.Search) Debug Report:\n"; - report += " OS: " + Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + Environment.Version + "\n"; + string report = "C# SDK (Immutable.Search) Debug Report:\n"; + report += " OS: " + System.Environment.OSVersion + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 1.0\n"; report += " SDK Package Version: 1.0.0\n"; @@ -536,7 +559,7 @@ public static string ToDebugReport() } /// - /// Add Api Key Header. + /// Add Api Key Header. /// /// Api Key name. /// Api Key value. @@ -547,7 +570,7 @@ public void AddApiKey(string key, string value) } /// - /// Sets the API key prefix. + /// Sets the API key prefix. /// /// Api Key name. /// Api Key value. @@ -557,5 +580,46 @@ public void AddApiKeyPrefix(string key, string value) } #endregion Methods + + #region Static Members + /// + /// Merge configurations. + /// + /// First configuration. + /// Second configuration. + /// Merged configuration. + public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second) + { + if (second == null) return first ?? GlobalConfiguration.Instance; + + Dictionary apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + + foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; + foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; + foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; + + var config = new Configuration + { + ApiKey = apiKey, + ApiKeyPrefix = apiKeyPrefix, + DefaultHeaders = defaultHeaders, + BasePath = second.BasePath ?? first.BasePath, + Timeout = second.Timeout, + Proxy = second.Proxy ?? first.Proxy, + UserAgent = second.UserAgent ?? first.UserAgent, + Username = second.Username ?? first.Username, + Password = second.Password ?? first.Password, + AccessToken = second.AccessToken ?? first.AccessToken, + TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, + UseDefaultCredentials = second.UseDefaultCredentials, + RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, + }; + return config; + } + #endregion Static Members } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs index 8cd86db1..358f3fa6 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs @@ -16,6 +16,9 @@ namespace Immutable.Search.Client { public class ConnectionException : Exception { + public UnityWebRequest.Result Result { get; private set; } + public string Error { get; private set; } + // NOTE: Cannot keep reference to the request since it will be disposed. public ConnectionException(UnityWebRequest request) : base($"result={request.result} error={request.error}") @@ -23,8 +26,5 @@ public ConnectionException(UnityWebRequest request) Result = request.result; Error = request.error ?? ""; } - - public UnityWebRequest.Result Result { get; private set; } - public string Error { get; private set; } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs index fd0301c8..9f4fc2c1 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs @@ -14,10 +14,10 @@ namespace Immutable.Search.Client { /// - /// A delegate to ExceptionFactory method + /// A delegate to ExceptionFactory method /// /// Method name /// Response /// Exceptions public delegate Exception ExceptionFactory(string methodName, IApiResponse response); -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs index e467a987..4ca2f99a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs @@ -14,31 +14,15 @@ namespace Immutable.Search.Client { /// - /// provides a compile-time extension point for globally configuring - /// API Clients. + /// provides a compile-time extension point for globally configuring + /// API Clients. /// /// - /// A customized implementation via partial class may reside in another file and may - /// be excluded from automatic generation via a .openapi-generator-ignore file. + /// A customized implementation via partial class may reside in another file and may + /// be excluded from automatic generation via a .openapi-generator-ignore file. /// - public class GlobalConfiguration : Configuration + public partial class GlobalConfiguration : Configuration { - /// - /// Gets or sets the default Configuration. - /// - /// Configuration. - public static IReadableConfiguration Instance - { - get => _globalConfiguration; - set - { - lock (GlobalConfigSync) - { - _globalConfiguration = value; - } - } - } - #region Private Members private static readonly object GlobalConfigSync = new { }; @@ -54,9 +38,7 @@ private GlobalConfiguration() } /// - public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, - IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base( - defaultHeader, apiKey, apiKeyPrefix, basePath) + public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) { } @@ -66,5 +48,21 @@ static GlobalConfiguration() } #endregion Constructors + + /// + /// Gets or sets the default Configuration. + /// + /// Configuration. + public static IReadableConfiguration Instance + { + get { return _globalConfiguration; } + set + { + lock (GlobalConfigSync) + { + _globalConfiguration = value; + } + } + } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs index fd882759..53fabf14 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs @@ -9,28 +9,30 @@ */ +using System; + namespace Immutable.Search.Client { /// - /// Represents configuration aspects required to interact with the API endpoints. + /// Represents configuration aspects required to interact with the API endpoints. /// public interface IApiAccessor { /// - /// Gets or sets the configuration object + /// Gets or sets the configuration object /// /// An instance of the Configuration IReadableConfiguration Configuration { get; set; } /// - /// Provides a factory method hook for the creation of exceptions. + /// Gets the base path of the API client. /// - ExceptionFactory ExceptionFactory { get; set; } + /// The base path + string GetBasePath(); /// - /// Gets the base path of the API client. + /// Provides a factory method hook for the creation of exceptions. /// - /// The base path - string GetBasePath(); + ExceptionFactory ExceptionFactory { get; set; } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs index 48651535..5a1193d2 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs @@ -9,99 +9,93 @@ */ -using System.Threading; +using System; using System.Threading.Tasks; namespace Immutable.Search.Client { /// - /// Contract for Asynchronous RESTful API interactions. - /// This interface allows consumers to provide a custom API accessor client. + /// Contract for Asynchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. /// public interface IAsynchronousClient { /// - /// Executes a non-blocking call to some using the GET http verb. + /// Executes a non-blocking call to some using the GET http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> GetAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Executes a non-blocking call to some using the POST http verb. + /// Executes a non-blocking call to some using the POST http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> PostAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Executes a non-blocking call to some using the PUT http verb. + /// Executes a non-blocking call to some using the PUT http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> PutAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Executes a non-blocking call to some using the DELETE http verb. + /// Executes a non-blocking call to some using the DELETE http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> DeleteAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Executes a non-blocking call to some using the HEAD http verb. + /// Executes a non-blocking call to some using the HEAD http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> HeadAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Executes a non-blocking call to some using the OPTIONS http verb. + /// Executes a non-blocking call to some using the OPTIONS http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> OptionsAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// Executes a non-blocking call to some using the PATCH http verb. + /// Executes a non-blocking call to some using the PATCH http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// Cancellation Token to cancel the request. /// The return type. - /// A task eventually representing the response data, decorated with - Task> PatchAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); + /// A task eventually representing the response data, decorated with + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs index 6c68fadd..cc5a96fa 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs @@ -18,126 +18,125 @@ namespace Immutable.Search.Client { /// - /// Represents a readable-only configuration contract. + /// Represents a readable-only configuration contract. /// public interface IReadableConfiguration { /// - /// Gets the access token. + /// Gets the access token. /// /// Access token. string AccessToken { get; } /// - /// Gets the API key. + /// Gets the API key. /// /// API key. IDictionary ApiKey { get; } /// - /// Gets the API key prefix. + /// Gets the API key prefix. /// /// API key prefix. IDictionary ApiKeyPrefix { get; } /// - /// Gets the base path. + /// Gets the base path. /// /// Base path. string BasePath { get; } /// - /// Gets the date time format. + /// Gets the date time format. /// /// Date time format. string DateTimeFormat { get; } /// - /// Gets the default header. + /// Gets the default header. /// /// Default header. [Obsolete("Use DefaultHeaders instead.")] IDictionary DefaultHeader { get; } /// - /// Gets the default headers. + /// Gets the default headers. /// /// Default headers. IDictionary DefaultHeaders { get; } /// - /// Gets the temp folder path. + /// Gets the temp folder path. /// /// Temp folder path. string TempFolderPath { get; } /// - /// Gets the HTTP connection timeout (in milliseconds) + /// Gets the HTTP connection timeout (in milliseconds) /// /// HTTP connection timeout. int Timeout { get; } /// - /// Gets the proxy. + /// Gets the proxy. /// /// Proxy. WebProxy Proxy { get; } /// - /// Gets the user agent. + /// Gets the user agent. /// /// User agent. string UserAgent { get; } /// - /// Gets the username. + /// Gets the username. /// /// Username. string Username { get; } /// - /// Gets the password. + /// Gets the password. /// /// Password. string Password { get; } /// - /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is - /// running) will be sent along to the server. The default is false. + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. /// bool UseDefaultCredentials { get; } /// - /// Get the servers associated with the operation. + /// Get the servers associated with the operation. /// /// Operation servers. IReadOnlyDictionary>> OperationServers { get; } /// - /// Gets certificate collection to be sent with requests. - /// - /// X509 Certificate collection. - X509CertificateCollection ClientCertificates { get; } - - /// - /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and - /// overriding certificate errors in the scope of a request. - /// - RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } - - /// - /// Gets the API key with prefix. + /// Gets the API key with prefix. /// /// API key identifier (authentication scheme). /// API key with prefix. string GetApiKeyWithPrefix(string apiKeyIdentifier); /// - /// Gets the Operation server url at the provided index. + /// Gets the Operation server url at the provided index. /// /// Operation server name. /// Index of the operation server settings. /// string GetOperationServerUrl(string operation, int index); + + /// + /// Gets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + X509CertificateCollection ClientCertificates { get; } + + /// + /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and + /// overriding certificate errors in the scope of a request. + /// + RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs index 94906f37..34aa406e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs @@ -9,82 +9,86 @@ */ +using System; +using System.IO; + namespace Immutable.Search.Client { /// - /// Contract for Synchronous RESTful API interactions. - /// This interface allows consumers to provide a custom API accessor client. + /// Contract for Synchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. /// public interface ISynchronousClient { /// - /// Executes a blocking call to some using the GET http verb. + /// Executes a blocking call to some using the GET http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); /// - /// Executes a blocking call to some using the POST http verb. + /// Executes a blocking call to some using the POST http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); /// - /// Executes a blocking call to some using the PUT http verb. + /// Executes a blocking call to some using the PUT http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); /// - /// Executes a blocking call to some using the DELETE http verb. + /// Executes a blocking call to some using the DELETE http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); /// - /// Executes a blocking call to some using the HEAD http verb. + /// Executes a blocking call to some using the HEAD http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); /// - /// Executes a blocking call to some using the OPTIONS http verb. + /// Executes a blocking call to some using the OPTIONS http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); /// - /// Executes a blocking call to some using the PATCH http verb. + /// Executes a blocking call to some using the PATCH http verb. /// /// The relative path to invoke. /// The request parameters to pass along to the client. /// Per-request configurable settings. /// The return type. - /// The response data, decorated with + /// The response data, decorated with ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs index d0b87272..ae2e8961 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs @@ -16,7 +16,7 @@ namespace Immutable.Search.Client { /// - /// A dictionary in which one key has many associated values. + /// A dictionary in which one key has many associated values. /// /// The type of the key /// The type of the value associated with the key. @@ -31,7 +31,7 @@ public class Multimap : IDictionary> #region Constructors /// - /// Empty Constructor. + /// Empty Constructor. /// public Multimap() { @@ -39,7 +39,7 @@ public Multimap() } /// - /// Constructor with comparer. + /// Constructor with comparer. /// /// public Multimap(IEqualityComparer comparer) @@ -52,7 +52,7 @@ public Multimap(IEqualityComparer comparer) #region Enumerators /// - /// To get the enumerator. + /// To get the enumerator. /// /// Enumerator public IEnumerator>> GetEnumerator() @@ -61,7 +61,7 @@ public IEnumerator>> GetEnumerator() } /// - /// To get the enumerator. + /// To get the enumerator. /// /// Enumerator IEnumerator IEnumerable.GetEnumerator() @@ -72,9 +72,8 @@ IEnumerator IEnumerable.GetEnumerator() #endregion Enumerators #region Public Members - /// - /// Add values to Multimap + /// Add values to Multimap /// /// Key value pair public void Add(KeyValuePair> item) @@ -84,18 +83,20 @@ public void Add(KeyValuePair> item) } /// - /// Add Multimap to Multimap + /// Add Multimap to Multimap /// /// Multimap public void Add(Multimap multimap) { foreach (var item in multimap) + { if (!TryAdd(item.Key, item.Value)) throw new InvalidOperationException("Could not add values to Multimap."); + } } /// - /// Clear Multimap + /// Clear Multimap /// public void Clear() { @@ -103,7 +104,7 @@ public void Clear() } /// - /// Determines whether Multimap contains the specified item. + /// Determines whether Multimap contains the specified item. /// /// Key value pair /// Method needs to be implemented @@ -114,13 +115,11 @@ public bool Contains(KeyValuePair> item) } /// - /// Copy items of the Multimap to an array, + /// Copy items of the Multimap to an array, /// starting at a particular array index. /// - /// - /// The array that is the destination of the items copied - /// from Multimap. The array must have zero-based indexing. - /// + /// The array that is the destination of the items copied + /// from Multimap. The array must have zero-based indexing. /// The zero-based index in array at which copying begins. /// Method needs to be implemented public void CopyTo(KeyValuePair>[] array, int arrayIndex) @@ -129,7 +128,7 @@ public void CopyTo(KeyValuePair>[] array, int arrayIndex) } /// - /// Removes the specified item from the Multimap. + /// Removes the specified item from the Multimap. /// /// Key value pair /// true if the item is successfully removed; otherwise, false. @@ -140,17 +139,17 @@ public bool Remove(KeyValuePair> item) } /// - /// Gets the number of items contained in the Multimap. + /// Gets the number of items contained in the Multimap. /// public int Count => _dictionary.Count; /// - /// Gets a value indicating whether the Multimap is read-only. + /// Gets a value indicating whether the Multimap is read-only. /// public bool IsReadOnly => false; /// - /// Adds an item with the provided key and value to the Multimap. + /// Adds an item with the provided key and value to the Multimap. /// /// The object to use as the key of the item to add. /// The object to use as the value of the item to add. @@ -173,20 +172,18 @@ public void Add(TKey key, IList value) } /// - /// Determines whether the Multimap contains an item with the specified key. + /// Determines whether the Multimap contains an item with the specified key. /// /// The key to locate in the Multimap. - /// - /// true if the Multimap contains an item with - /// the key; otherwise, false. - /// + /// true if the Multimap contains an item with + /// the key; otherwise, false. public bool ContainsKey(TKey key) { return _dictionary.ContainsKey(key); } /// - /// Removes item with the specified key from the Multimap. + /// Removes item with the specified key from the Multimap. /// /// The key to locate in the Multimap. /// true if the item is successfully removed; otherwise, false. @@ -196,25 +193,21 @@ public bool Remove(TKey key) } /// - /// Gets the value associated with the specified key. + /// Gets the value associated with the specified key. /// /// The key whose value to get. - /// - /// When this method returns, the value associated with the specified key, if the + /// When this method returns, the value associated with the specified key, if the /// key is found; otherwise, the default value for the type of the value parameter. - /// This parameter is passed uninitialized. - /// - /// - /// true if the object that implements Multimap contains - /// an item with the specified key; otherwise, false. - /// + /// This parameter is passed uninitialized. + /// true if the object that implements Multimap contains + /// an item with the specified key; otherwise, false. public bool TryGetValue(TKey key, out IList value) { return _dictionary.TryGetValue(key, out value); } /// - /// Gets or sets the item with the specified key. + /// Gets or sets the item with the specified key. /// /// The key of the item to get or set. /// The value of the specified key. @@ -225,23 +218,21 @@ public IList this[TKey key] } /// - /// Gets a System.Collections.Generic.ICollection containing the keys of the Multimap. + /// Gets a System.Collections.Generic.ICollection containing the keys of the Multimap. /// public ICollection Keys => _dictionary.Keys; /// - /// Gets a System.Collections.Generic.ICollection containing the values of the Multimap. + /// Gets a System.Collections.Generic.ICollection containing the values of the Multimap. /// public ICollection> Values => _dictionary.Values; /// - /// Copy the items of the Multimap to an System.Array, + /// Copy the items of the Multimap to an System.Array, /// starting at a particular System.Array index. /// - /// - /// The one-dimensional System.Array that is the destination of the items copied - /// from Multimap. The System.Array must have zero-based indexing. - /// + /// The one-dimensional System.Array that is the destination of the items copied + /// from Multimap. The System.Array must have zero-based indexing. /// The zero-based index in array at which copying begins. public void CopyTo(Array array, int index) { @@ -249,7 +240,7 @@ public void CopyTo(Array array, int index) } /// - /// Adds an item with the provided key and value to the Multimap. + /// Adds an item with the provided key and value to the Multimap. /// /// The object to use as the key of the item to add. /// The object to use as the value of the item to add. @@ -300,7 +291,6 @@ private bool TryAdd(TKey key, IList value) return true; } - #endregion Private Members } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs index 4237374e..9bb002c2 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs @@ -13,13 +13,13 @@ namespace Immutable.Search.Client { /// - /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 - /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types /// public class OpenAPIDateConverter : IsoDateTimeConverter { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// public OpenAPIDateConverter() { @@ -27,4 +27,4 @@ public OpenAPIDateConverter() DateTimeFormat = "yyyy-MM-dd"; } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs index 0d8cc019..a3bf5e90 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs @@ -9,59 +9,61 @@ */ +using System; using System.Collections.Generic; +using System.IO; using System.Net; namespace Immutable.Search.Client { /// - /// A container for generalized request inputs. This type allows consumers to extend the request functionality - /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). + /// A container for generalized request inputs. This type allows consumers to extend the request functionality + /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). /// public class RequestOptions { /// - /// Constructs a new instance of - /// - public RequestOptions() - { - PathParameters = new Dictionary(); - QueryParameters = new Multimap(); - HeaderParameters = new Multimap(); - FormParameters = new Dictionary(); - Cookies = new List(); - } - - /// - /// Parameters to be bound to path parts of the Request's URL + /// Parameters to be bound to path parts of the Request's URL /// public Dictionary PathParameters { get; set; } /// - /// Query parameters to be applied to the request. - /// Keys may have 1 or more values associated. + /// Query parameters to be applied to the request. + /// Keys may have 1 or more values associated. /// public Multimap QueryParameters { get; set; } /// - /// Header parameters to be applied to to the request. - /// Keys may have 1 or more values associated. + /// Header parameters to be applied to to the request. + /// Keys may have 1 or more values associated. /// public Multimap HeaderParameters { get; set; } /// - /// Form parameters to be sent along with the request. + /// Form parameters to be sent along with the request. /// public Dictionary FormParameters { get; set; } /// - /// Cookies to be sent along with the request. + /// Cookies to be sent along with the request. /// public List Cookies { get; set; } /// - /// Any data associated with a request body. + /// Any data associated with a request body. /// - public object Data { get; set; } + public Object Data { get; set; } + + /// + /// Constructs a new instance of + /// + public RequestOptions() + { + PathParameters = new Dictionary(); + QueryParameters = new Multimap(); + HeaderParameters = new Multimap(); + FormParameters = new Dictionary(); + Cookies = new List(); + } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs index b4b83bd4..08ca5e4c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs @@ -18,18 +18,18 @@ namespace Immutable.Search.Client // of the response data. public class UnexpectedResponseException : Exception { + public int ErrorCode { get; private set; } + // NOTE: Cannot keep reference to the request since it will be disposed. - public UnexpectedResponseException(UnityWebRequest request, Type type, string extra = "") + public UnexpectedResponseException(UnityWebRequest request, System.Type type, string extra = "") : base(CreateMessage(request, type, extra)) { ErrorCode = (int)request.responseCode; } - public int ErrorCode { get; private set; } - - private static string CreateMessage(UnityWebRequest request, Type type, string extra) + private static string CreateMessage(UnityWebRequest request, System.Type type, string extra) { return $"httpcode={request.responseCode}, expected {type.Name} but got data: {extra}"; } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs index ee3af1d2..546c9c9e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs @@ -14,36 +14,41 @@ namespace Immutable.Search.Client { /// - /// A URI builder + /// A URI builder /// - internal class WebRequestPathBuilder + class WebRequestPathBuilder { - private readonly string _baseUrl; - private string _path; - private string _query = "?"; + private string _baseUrl; + private string _path; + private string _query = "?"; + public WebRequestPathBuilder(string baseUrl, string path) + { + _baseUrl = baseUrl; + _path = path; + } - public WebRequestPathBuilder(string baseUrl, string path) - { - _baseUrl = baseUrl; - _path = path; - } + public void AddPathParameters(Dictionary parameters) + { + foreach (var parameter in parameters) + { + _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); + } + } - public void AddPathParameters(Dictionary parameters) - { - foreach (var parameter in parameters) - _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); - } + public void AddQueryParameters(Multimap parameters) + { + foreach (var parameter in parameters) + { + foreach (var value in parameter.Value) + { + _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; + } + } + } - public void AddQueryParameters(Multimap parameters) - { - foreach (var parameter in parameters) - foreach (var value in parameter.Value) - _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; - } - - public string GetFullUri() - { - return _baseUrl + _path + _query.Substring(0, _query.Length - 1); - } + public string GetFullUri() + { + return _baseUrl + _path + _query.Substring(0, _query.Length - 1); + } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef index 8a59f88c..28fa8986 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef @@ -1,7 +1,7 @@ { - "name": "Immutable.Search", - "overrideReferences": true, - "precompiledReferences": [ - "Newtonsoft.Json.dll" - ] + "name": "Immutable.Search", + "overrideReferences": true, + "precompiledReferences": [ + "Newtonsoft.Json.dll" + ] } diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs index 5302ac62..c2382302 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError400 + /// APIError400 /// [DataContract(Name = "APIError400")] - public class APIError400 + public partial class APIError400 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum VALIDATIONERROR for value: VALIDATION_ERROR + /// Enum VALIDATIONERROR for value: VALIDATION_ERROR /// [EnumMember(Value = "VALIDATION_ERROR")] VALIDATIONERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// VALIDATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError400() - { - } - + protected APIError400() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError400(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError400(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError400 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError400 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError400 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError400 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// VALIDATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError400(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError400(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError400(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError400 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs index e4b44078..5ac45fe2 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError400AllOf + /// APIError400AllOf /// [DataContract(Name = "APIError400_allOf")] - public class APIError400AllOf + public partial class APIError400AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum VALIDATIONERROR for value: VALIDATION_ERROR + /// Enum VALIDATIONERROR for value: VALIDATION_ERROR /// [EnumMember(Value = "VALIDATION_ERROR")] VALIDATIONERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// VALIDATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError400AllOf() - { - } - + protected APIError400AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError400AllOf(CodeEnum code = default, object details = default) + public APIError400AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError400AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError400AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// VALIDATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError400AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs index 4bb91a1a..4c0d3900 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError401 + /// APIError401 /// [DataContract(Name = "APIError401")] - public class APIError401 + public partial class APIError401 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST + /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST /// [EnumMember(Value = "UNAUTHORISED_REQUEST")] UNAUTHORISEDREQUEST = 1 } + + /// + /// Error Code + /// + /// Error Code + /// UNAUTHORISED_REQUEST + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError401() - { - } - + protected APIError401() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError401(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError401(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError401 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError401 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError401 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError401 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// UNAUTHORISED_REQUEST - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError401(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError401(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError401(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError401 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs index 4949b42e..f4d93a7e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError401AllOf + /// APIError401AllOf /// [DataContract(Name = "APIError401_allOf")] - public class APIError401AllOf + public partial class APIError401AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST + /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST /// [EnumMember(Value = "UNAUTHORISED_REQUEST")] UNAUTHORISEDREQUEST = 1 } + + /// + /// Error Code + /// + /// Error Code + /// UNAUTHORISED_REQUEST + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError401AllOf() - { - } - + protected APIError401AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError401AllOf(CodeEnum code = default, object details = default) + public APIError401AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError401AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError401AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// UNAUTHORISED_REQUEST - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError401AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs index c9a0585f..1b847c89 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError403 + /// APIError403 /// [DataContract(Name = "APIError403")] - public class APIError403 + public partial class APIError403 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum AUTHENTICATIONERROR for value: AUTHENTICATION_ERROR + /// Enum AUTHENTICATIONERROR for value: AUTHENTICATION_ERROR /// [EnumMember(Value = "AUTHENTICATION_ERROR")] AUTHENTICATIONERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// AUTHENTICATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError403() - { - } - + protected APIError403() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError403(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError403(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError403 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError403 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError403 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError403 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// AUTHENTICATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError403(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError403(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError403(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError403 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs index b43742e1..0b450e03 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError403AllOf + /// APIError403AllOf /// [DataContract(Name = "APIError403_allOf")] - public class APIError403AllOf + public partial class APIError403AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum AUTHENTICATIONERROR for value: AUTHENTICATION_ERROR + /// Enum AUTHENTICATIONERROR for value: AUTHENTICATION_ERROR /// [EnumMember(Value = "AUTHENTICATION_ERROR")] AUTHENTICATIONERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// AUTHENTICATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError403AllOf() - { - } - + protected APIError403AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError403AllOf(CodeEnum code = default, object details = default) + public APIError403AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError403AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError403AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// AUTHENTICATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError403AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs index 62f1a805..50b2165c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError404 + /// APIError404 /// [DataContract(Name = "APIError404")] - public class APIError404 + public partial class APIError404 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND + /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND /// [EnumMember(Value = "RESOURCE_NOT_FOUND")] RESOURCENOTFOUND = 1 } + + /// + /// Error Code + /// + /// Error Code + /// RESOURCE_NOT_FOUND + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError404() - { - } - + protected APIError404() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError404(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError404(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError404 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError404 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError404 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError404 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// RESOURCE_NOT_FOUND - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError404(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError404(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError404(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError404 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs index e5c472e4..203f22d7 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError404AllOf + /// APIError404AllOf /// [DataContract(Name = "APIError404_allOf")] - public class APIError404AllOf + public partial class APIError404AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND + /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND /// [EnumMember(Value = "RESOURCE_NOT_FOUND")] RESOURCENOTFOUND = 1 } + + /// + /// Error Code + /// + /// Error Code + /// RESOURCE_NOT_FOUND + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError404AllOf() - { - } - + protected APIError404AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError404AllOf(CodeEnum code = default, object details = default) + public APIError404AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError404AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError404AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// RESOURCE_NOT_FOUND - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError404AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs index 005fce58..6084ea16 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError409 + /// APIError409 /// [DataContract(Name = "APIError409")] - public class APIError409 + public partial class APIError409 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum CONFLICTERROR for value: CONFLICT_ERROR + /// Enum CONFLICTERROR for value: CONFLICT_ERROR /// - [EnumMember(Value = "CONFLICT_ERROR")] CONFLICTERROR = 1 + [EnumMember(Value = "CONFLICT_ERROR")] + CONFLICTERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// CONFLICT_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError409() - { - } - + protected APIError409() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError409(string message = default, string link = default, string traceId = default, - CodeEnum code = default, Dictionary details = default) + public APIError409(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Dictionary details = default(Dictionary)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError409 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError409 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError409 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError409 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// CONFLICT_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError409(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError409(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError409(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Dictionary Details { get; set; } + public Dictionary Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError409 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs index be9158ff..037dbd6a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError409AllOf + /// APIError409AllOf /// [DataContract(Name = "APIError409_allOf")] - public class APIError409AllOf + public partial class APIError409AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum CONFLICTERROR for value: CONFLICT_ERROR + /// Enum CONFLICTERROR for value: CONFLICT_ERROR /// - [EnumMember(Value = "CONFLICT_ERROR")] CONFLICTERROR = 1 + [EnumMember(Value = "CONFLICT_ERROR")] + CONFLICTERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// CONFLICT_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError409AllOf() - { - } - + protected APIError409AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError409AllOf(CodeEnum code = default, Dictionary details = default) + public APIError409AllOf(CodeEnum code = default(CodeEnum), Dictionary details = default(Dictionary)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError409AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError409AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// CONFLICT_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Dictionary Details { get; set; } + public Dictionary Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError409AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs index 6b809290..0305d88a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError429 + /// APIError429 /// [DataContract(Name = "APIError429")] - public class APIError429 + public partial class APIError429 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum TOOMANYREQUESTSERROR for value: TOO_MANY_REQUESTS_ERROR + /// Enum TOOMANYREQUESTSERROR for value: TOO_MANY_REQUESTS_ERROR /// [EnumMember(Value = "TOO_MANY_REQUESTS_ERROR")] TOOMANYREQUESTSERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// TOO_MANY_REQUESTS_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError429() - { - } - + protected APIError429() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError429(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError429(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError429 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError429 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError429 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError429 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// TOO_MANY_REQUESTS_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError429(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError429(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError429(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError429 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs index 392656f7..ac41656e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError429AllOf + /// APIError429AllOf /// [DataContract(Name = "APIError429_allOf")] - public class APIError429AllOf + public partial class APIError429AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum TOOMANYREQUESTSERROR for value: TOO_MANY_REQUESTS_ERROR + /// Enum TOOMANYREQUESTSERROR for value: TOO_MANY_REQUESTS_ERROR /// [EnumMember(Value = "TOO_MANY_REQUESTS_ERROR")] TOOMANYREQUESTSERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// TOO_MANY_REQUESTS_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError429AllOf() - { - } - + protected APIError429AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError429AllOf(CodeEnum code = default, object details = default) + public APIError429AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError429AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError429AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// TOO_MANY_REQUESTS_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError429AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs index 96386ad0..155eee57 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs @@ -10,82 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError500 + /// APIError500 /// [DataContract(Name = "APIError500")] - public class APIError500 + public partial class APIError500 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum INTERNALSERVERERROR for value: INTERNAL_SERVER_ERROR + /// Enum INTERNALSERVERERROR for value: INTERNAL_SERVER_ERROR /// [EnumMember(Value = "INTERNAL_SERVER_ERROR")] INTERNALSERVERERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// INTERNAL_SERVER_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError500() - { - } - + protected APIError500() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError500(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError500(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError500 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError500 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError500 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError500 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// INTERNAL_SERVER_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError500(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError500(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError500(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError500 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs index bff9425e..03bf6dba 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs @@ -10,79 +10,84 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// APIError500AllOf + /// APIError500AllOf /// [DataContract(Name = "APIError500_allOf")] - public class APIError500AllOf + public partial class APIError500AllOf { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum INTERNALSERVERERROR for value: INTERNAL_SERVER_ERROR + /// Enum INTERNALSERVERERROR for value: INTERNAL_SERVER_ERROR /// [EnumMember(Value = "INTERNAL_SERVER_ERROR")] INTERNALSERVERERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// INTERNAL_SERVER_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError500AllOf() - { - } - + protected APIError500AllOf() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError500AllOf(CodeEnum code = default, object details = default) + public APIError500AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) { - Code = code; + this.Code = code; // to ensure "details" is required (not null) if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError500AllOf and cannot be null"); - Details = details; + { + throw new ArgumentNullException("details is a required property for APIError500AllOf and cannot be null"); + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// INTERNAL_SERVER_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError500AllOf {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Details: ").Append(Details).Append("\n"); @@ -91,12 +96,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs index f71ebc24..842cabc8 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs @@ -9,20 +9,21 @@ */ +using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Immutable.Search.Model { /// - /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification + /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification /// - public abstract class AbstractOpenAPISchema + public abstract partial class AbstractOpenAPISchema { /// - /// Custom JSON serializer + /// Custom JSON serializer /// - public static readonly JsonSerializerSettings SerializerSettings = new() + static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, @@ -37,9 +38,9 @@ public abstract class AbstractOpenAPISchema }; /// - /// Custom JSON serializer for objects with additional properties + /// Custom JSON serializer for objects with additional properties /// - public static readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new() + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, @@ -54,23 +55,23 @@ public abstract class AbstractOpenAPISchema }; /// - /// Gets or Sets the actual instance + /// Gets or Sets the actual instance /// - public abstract object ActualInstance { get; set; } + public abstract Object ActualInstance { get; set; } /// - /// Gets or Sets IsNullable to indicate whether the instance is nullable + /// Gets or Sets IsNullable to indicate whether the instance is nullable /// public bool IsNullable { get; protected set; } /// - /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` + /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` /// public string SchemaType { get; protected set; } /// - /// Converts the instance into JSON string. + /// Converts the instance into JSON string. /// public abstract string ToJson(); } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs index 08fdf6ef..232403b6 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs @@ -10,52 +10,62 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Backfill request + /// Backfill request /// [DataContract(Name = "BackfillRequest")] - public class BackfillRequest + public partial class BackfillRequest { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected BackfillRequest() - { - } - + protected BackfillRequest() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The entity to be backfilled (required). /// The indexer url for the given chain and entity (required). - public BackfillRequest(string entity = default, string apiUrl = default) + public BackfillRequest(string entity = default(string), string apiUrl = default(string)) { // to ensure "entity" is required (not null) if (entity == null) + { throw new ArgumentNullException("entity is a required property for BackfillRequest and cannot be null"); - Entity = entity; + } + this.Entity = entity; // to ensure "apiUrl" is required (not null) if (apiUrl == null) + { throw new ArgumentNullException("apiUrl is a required property for BackfillRequest and cannot be null"); - ApiUrl = apiUrl; + } + this.ApiUrl = apiUrl; } /// - /// The entity to be backfilled + /// The entity to be backfilled /// /// The entity to be backfilled [DataMember(Name = "entity", IsRequired = true, EmitDefaultValue = true)] public string Entity { get; set; } /// - /// The indexer url for the given chain and entity + /// The indexer url for the given chain and entity /// /// The indexer url for the given chain and entity /// https://indexer-mr.dev.imtbl.com @@ -63,12 +73,12 @@ public BackfillRequest(string entity = default, string apiUrl = default) public string ApiUrl { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BackfillRequest {\n"); sb.Append(" Entity: ").Append(Entity).Append("\n"); sb.Append(" ApiUrl: ").Append(ApiUrl).Append("\n"); @@ -77,12 +87,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs index 54264e14..a9496f8a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs @@ -10,50 +10,62 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// BasicAPIError + /// BasicAPIError /// [DataContract(Name = "BasicAPIError")] - public class BasicAPIError + public partial class BasicAPIError { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected BasicAPIError() - { - } - + protected BasicAPIError() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). - public BasicAPIError(string message = default, string link = default, string traceId = default) + public BasicAPIError(string message = default(string), string link = default(string), string traceId = default(string)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for BasicAPIError and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for BasicAPIError and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for BasicAPIError and cannot be null"); - TraceId = traceId; + } + this.TraceId = traceId; } /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -61,7 +73,7 @@ public BasicAPIError(string message = default, string link = default, string tra public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -69,7 +81,7 @@ public BasicAPIError(string message = default, string link = default, string tra public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -77,12 +89,12 @@ public BasicAPIError(string message = default, string link = default, string tra public string TraceId { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BasicAPIError {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -92,12 +104,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs index a16195b9..d55819c7 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs @@ -10,44 +10,55 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// The chain details + /// The chain details /// [DataContract(Name = "Chain")] - public class Chain + public partial class Chain { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Chain() - { - } - + protected Chain() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The id of chain (required). /// The name of chain (required). - public Chain(string id = default, string name = default) + public Chain(string id = default(string), string name = default(string)) { // to ensure "id" is required (not null) - if (id == null) throw new ArgumentNullException("id is a required property for Chain and cannot be null"); - Id = id; + if (id == null) + { + throw new ArgumentNullException("id is a required property for Chain and cannot be null"); + } + this.Id = id; // to ensure "name" is required (not null) if (name == null) + { throw new ArgumentNullException("name is a required property for Chain and cannot be null"); - Name = name; + } + this.Name = name; } /// - /// The id of chain + /// The id of chain /// /// The id of chain /// eip155:13372 @@ -55,7 +66,7 @@ public Chain(string id = default, string name = default) public string Id { get; set; } /// - /// The name of chain + /// The name of chain /// /// The name of chain /// imtbl-zkevm-testnet @@ -63,12 +74,12 @@ public Chain(string id = default, string name = default) public string Name { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Chain {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); @@ -77,12 +88,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs index 98e6758e..7ed95aa4 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs @@ -10,77 +10,86 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// ERC20Token + /// ERC20Token /// [DataContract(Name = "ERC20Token")] - public class ERC20Token + public partial class ERC20Token { /// - /// Token type user is offering, which in this case is ERC20 + /// Token type user is offering, which in this case is ERC20 /// /// Token type user is offering, which in this case is ERC20 [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { /// - /// Enum ERC20 for value: ERC20 + /// Enum ERC20 for value: ERC20 /// - [EnumMember(Value = "ERC20")] ERC20 = 1 + [EnumMember(Value = "ERC20")] + ERC20 = 1 } + + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + /// ERC20 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected ERC20Token() - { - } - + protected ERC20Token() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Token type user is offering, which in this case is ERC20 (required). /// Address of ERC20 token (required). /// The symbol of token (required). /// The decimals of token (required). - public ERC20Token(TypeEnum type = default, string contractAddress = default, string symbol = default, - int? decimals = default) + public ERC20Token(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string symbol = default(string), int? decimals = default(int?)) { - Type = type; + this.Type = type; // to ensure "contractAddress" is required (not null) if (contractAddress == null) - throw new ArgumentNullException( - "contractAddress is a required property for ERC20Token and cannot be null"); - ContractAddress = contractAddress; + { + throw new ArgumentNullException("contractAddress is a required property for ERC20Token and cannot be null"); + } + this.ContractAddress = contractAddress; // to ensure "symbol" is required (not null) if (symbol == null) + { throw new ArgumentNullException("symbol is a required property for ERC20Token and cannot be null"); - Symbol = symbol; + } + this.Symbol = symbol; // to ensure "decimals" is required (not null) if (decimals == null) + { throw new ArgumentNullException("decimals is a required property for ERC20Token and cannot be null"); - Decimals = decimals; + } + this.Decimals = decimals; } - - /// - /// Token type user is offering, which in this case is ERC20 - /// - /// Token type user is offering, which in this case is ERC20 - /// ERC20 - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - /// - /// Address of ERC20 token + /// Address of ERC20 token /// /// Address of ERC20 token /// 7973173272142053871140891859049224849605192591 @@ -88,7 +97,7 @@ public ERC20Token(TypeEnum type = default, string contractAddress = default, str public string ContractAddress { get; set; } /// - /// The symbol of token + /// The symbol of token /// /// The symbol of token /// ETH @@ -96,7 +105,7 @@ public ERC20Token(TypeEnum type = default, string contractAddress = default, str public string Symbol { get; set; } /// - /// The decimals of token + /// The decimals of token /// /// The decimals of token /// 18 @@ -104,12 +113,12 @@ public ERC20Token(TypeEnum type = default, string contractAddress = default, str public int? Decimals { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ERC20Token {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); @@ -120,12 +129,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs index 1720eef9..d87854ee 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs @@ -10,87 +10,97 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Fee + /// Fee /// [DataContract(Name = "Fee")] - public class Fee + public partial class Fee { /// - /// Fee type + /// Fee type /// /// Fee type [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { /// - /// Enum ROYALTY for value: ROYALTY + /// Enum ROYALTY for value: ROYALTY /// - [EnumMember(Value = "ROYALTY")] ROYALTY = 1, + [EnumMember(Value = "ROYALTY")] + ROYALTY = 1, /// - /// Enum MAKERECOSYSTEM for value: MAKER_ECOSYSTEM + /// Enum MAKERECOSYSTEM for value: MAKER_ECOSYSTEM /// [EnumMember(Value = "MAKER_ECOSYSTEM")] MAKERECOSYSTEM = 2, /// - /// Enum TAKERECOSYSTEM for value: TAKER_ECOSYSTEM + /// Enum TAKERECOSYSTEM for value: TAKER_ECOSYSTEM /// [EnumMember(Value = "TAKER_ECOSYSTEM")] TAKERECOSYSTEM = 3, /// - /// Enum PROTOCOL for value: PROTOCOL + /// Enum PROTOCOL for value: PROTOCOL /// - [EnumMember(Value = "PROTOCOL")] PROTOCOL = 4 + [EnumMember(Value = "PROTOCOL")] + PROTOCOL = 4 } + + /// + /// Fee type + /// + /// Fee type + /// ROYALTY + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Fee() - { - } - + protected Fee() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Fee in the payment currency (required). /// Fee type (required). /// Wallet address of fee recipient (required). - public Fee(string amount = default, TypeEnum type = default, string recipientAddress = default) + public Fee(string amount = default(string), TypeEnum type = default(TypeEnum), string recipientAddress = default(string)) { // to ensure "amount" is required (not null) if (amount == null) + { throw new ArgumentNullException("amount is a required property for Fee and cannot be null"); - Amount = amount; - Type = type; + } + this.Amount = amount; + this.Type = type; // to ensure "recipientAddress" is required (not null) if (recipientAddress == null) + { throw new ArgumentNullException("recipientAddress is a required property for Fee and cannot be null"); - RecipientAddress = recipientAddress; + } + this.RecipientAddress = recipientAddress; } - - /// - /// Fee type - /// - /// Fee type - /// ROYALTY - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - /// - /// Fee in the payment currency + /// Fee in the payment currency /// /// Fee in the payment currency /// 1000000000000000000 @@ -98,7 +108,7 @@ public Fee(string amount = default, TypeEnum type = default, string recipientAdd public string Amount { get; set; } /// - /// Wallet address of fee recipient + /// Wallet address of fee recipient /// /// Wallet address of fee recipient /// 1390849295786071768276380950238675083608645509683 @@ -106,12 +116,12 @@ public Fee(string amount = default, TypeEnum type = default, string recipientAdd public string RecipientAddress { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Fee {\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); @@ -121,12 +131,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs index a4e00d3e..6702b4d5 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs @@ -10,56 +10,66 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Last trade + /// Last trade /// [DataContract(Name = "LastTrade")] - public class LastTrade + public partial class LastTrade { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected LastTrade() - { - } - + protected LastTrade() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Trade ID (required). /// Token id of the traded asset (uint256 as string) (required). /// Price details, list of payments involved in this trade (required). /// Amount of the trade (uint256 as string) (required). /// When the trade was created (required). - public LastTrade(Guid tradeId = default, string tokenId = default, List priceDetails = default, - string amount = default, DateTime createdAt = default) + public LastTrade(Guid tradeId = default(Guid), string tokenId = default(string), List priceDetails = default(List), string amount = default(string), DateTime createdAt = default(DateTime)) { - TradeId = tradeId; + this.TradeId = tradeId; // to ensure "tokenId" is required (not null) if (tokenId == null) + { throw new ArgumentNullException("tokenId is a required property for LastTrade and cannot be null"); - TokenId = tokenId; + } + this.TokenId = tokenId; // to ensure "priceDetails" is required (not null) if (priceDetails == null) + { throw new ArgumentNullException("priceDetails is a required property for LastTrade and cannot be null"); - PriceDetails = priceDetails; + } + this.PriceDetails = priceDetails; // to ensure "amount" is required (not null) if (amount == null) + { throw new ArgumentNullException("amount is a required property for LastTrade and cannot be null"); - Amount = amount; - CreatedAt = createdAt; + } + this.Amount = amount; + this.CreatedAt = createdAt; } /// - /// Trade ID + /// Trade ID /// /// Trade ID /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b @@ -67,7 +77,7 @@ public LastTrade(Guid tradeId = default, string tokenId = default, List - /// Token id of the traded asset (uint256 as string) + /// Token id of the traded asset (uint256 as string) /// /// Token id of the traded asset (uint256 as string) /// 1 @@ -75,14 +85,14 @@ public LastTrade(Guid tradeId = default, string tokenId = default, List - /// Price details, list of payments involved in this trade + /// Price details, list of payments involved in this trade /// /// Price details, list of payments involved in this trade [DataMember(Name = "price_details", IsRequired = true, EmitDefaultValue = true)] public List PriceDetails { get; set; } /// - /// Amount of the trade (uint256 as string) + /// Amount of the trade (uint256 as string) /// /// Amount of the trade (uint256 as string) /// 1 @@ -90,7 +100,7 @@ public LastTrade(Guid tradeId = default, string tokenId = default, List - /// When the trade was created + /// When the trade was created /// /// When the trade was created /// 2022-08-16T17:43:26.991388Z @@ -98,12 +108,12 @@ public LastTrade(Guid tradeId = default, string tokenId = default, List - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class LastTrade {\n"); sb.Append(" TradeId: ").Append(TradeId).Append("\n"); sb.Append(" TokenId: ").Append(TokenId).Append("\n"); @@ -115,12 +125,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs index 2d0b08ae..cd5fd883 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs @@ -10,61 +10,76 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Listing + /// Listing /// [DataContract(Name = "Listing")] - public class Listing + public partial class Listing { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Listing() - { - } - + protected Listing() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Global Order identifier (required). /// priceDetails (required). /// Token ID (required). /// ETH Address of listing creator (required). /// Amount of token included in the listing (required). - public Listing(string listingId = default, PriceDetails priceDetails = default, string tokenId = default, - string creator = default, string amount = default) + public Listing(string listingId = default(string), PriceDetails priceDetails = default(PriceDetails), string tokenId = default(string), string creator = default(string), string amount = default(string)) { // to ensure "listingId" is required (not null) if (listingId == null) + { throw new ArgumentNullException("listingId is a required property for Listing and cannot be null"); - ListingId = listingId; + } + this.ListingId = listingId; // to ensure "priceDetails" is required (not null) if (priceDetails == null) + { throw new ArgumentNullException("priceDetails is a required property for Listing and cannot be null"); - PriceDetails = priceDetails; + } + this.PriceDetails = priceDetails; // to ensure "tokenId" is required (not null) if (tokenId == null) + { throw new ArgumentNullException("tokenId is a required property for Listing and cannot be null"); - TokenId = tokenId; + } + this.TokenId = tokenId; // to ensure "creator" is required (not null) if (creator == null) + { throw new ArgumentNullException("creator is a required property for Listing and cannot be null"); - Creator = creator; + } + this.Creator = creator; // to ensure "amount" is required (not null) if (amount == null) + { throw new ArgumentNullException("amount is a required property for Listing and cannot be null"); - Amount = amount; + } + this.Amount = amount; } /// - /// Global Order identifier + /// Global Order identifier /// /// Global Order identifier /// 018792C9-4AD7-8EC4-4038-9E05C598534A @@ -72,13 +87,13 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string ListingId { get; set; } /// - /// Gets or Sets PriceDetails + /// Gets or Sets PriceDetails /// [DataMember(Name = "price_details", IsRequired = true, EmitDefaultValue = true)] public PriceDetails PriceDetails { get; set; } /// - /// Token ID + /// Token ID /// /// Token ID /// 1 @@ -86,7 +101,7 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string TokenId { get; set; } /// - /// ETH Address of listing creator + /// ETH Address of listing creator /// /// ETH Address of listing creator /// 1334120697966828340666039427861105342297873844179 @@ -94,7 +109,7 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string Creator { get; set; } /// - /// Amount of token included in the listing + /// Amount of token included in the listing /// /// Amount of token included in the listing /// 1 @@ -102,12 +117,12 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string Amount { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Listing {\n"); sb.Append(" ListingId: ").Append(ListingId).Append("\n"); sb.Append(" PriceDetails: ").Append(PriceDetails).Append("\n"); @@ -119,12 +134,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs index 9d76d9bd..a5312d8a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs @@ -10,62 +10,72 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Market data + /// Market data /// [DataContract(Name = "Market")] - public class Market + public partial class Market { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Market() - { - } - + protected Market() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// floorListing (required). /// lastTrade (required). - public Market(Listing floorListing = default, LastTrade lastTrade = default) + public Market(Listing floorListing = default(Listing), LastTrade lastTrade = default(LastTrade)) { // to ensure "floorListing" is required (not null) if (floorListing == null) + { throw new ArgumentNullException("floorListing is a required property for Market and cannot be null"); - FloorListing = floorListing; + } + this.FloorListing = floorListing; // to ensure "lastTrade" is required (not null) if (lastTrade == null) + { throw new ArgumentNullException("lastTrade is a required property for Market and cannot be null"); - LastTrade = lastTrade; + } + this.LastTrade = lastTrade; } /// - /// Gets or Sets FloorListing + /// Gets or Sets FloorListing /// [DataMember(Name = "floor_listing", IsRequired = true, EmitDefaultValue = true)] public Listing FloorListing { get; set; } /// - /// Gets or Sets LastTrade + /// Gets or Sets LastTrade /// [DataMember(Name = "last_trade", IsRequired = true, EmitDefaultValue = true)] public LastTrade LastTrade { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Market {\n"); sb.Append(" FloorListing: ").Append(FloorListing).Append("\n"); sb.Append(" LastTrade: ").Append(LastTrade).Append("\n"); @@ -74,12 +84,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs index e9024ed0..27a1a33e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs @@ -10,89 +10,97 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// NFTMetadataAttribute + /// NFTMetadataAttribute /// [DataContract(Name = "NFTMetadataAttribute")] - public class NFTMetadataAttribute + public partial class NFTMetadataAttribute { /// - /// Display type for this attribute + /// Display type for this attribute /// /// Display type for this attribute [JsonConverter(typeof(StringEnumConverter))] public enum DisplayTypeEnum { /// - /// Enum Number for value: number + /// Enum Number for value: number /// - [EnumMember(Value = "number")] Number = 1, + [EnumMember(Value = "number")] + Number = 1, /// - /// Enum BoostPercentage for value: boost_percentage + /// Enum BoostPercentage for value: boost_percentage /// [EnumMember(Value = "boost_percentage")] BoostPercentage = 2, /// - /// Enum BoostNumber for value: boost_number + /// Enum BoostNumber for value: boost_number /// - [EnumMember(Value = "boost_number")] BoostNumber = 3, + [EnumMember(Value = "boost_number")] + BoostNumber = 3, /// - /// Enum Date for value: date + /// Enum Date for value: date /// - [EnumMember(Value = "date")] Date = 4 + [EnumMember(Value = "date")] + Date = 4 } + + /// + /// Display type for this attribute + /// + /// Display type for this attribute + /// number + [DataMember(Name = "display_type", EmitDefaultValue = true)] + public DisplayTypeEnum? DisplayType { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected NFTMetadataAttribute() - { - } - + protected NFTMetadataAttribute() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Display type for this attribute. /// The metadata trait type (required). /// value (required). - public NFTMetadataAttribute(DisplayTypeEnum? displayType = default, string traitType = default, - NFTMetadataAttributeValue value = default) + public NFTMetadataAttribute(DisplayTypeEnum? displayType = default(DisplayTypeEnum?), string traitType = default(string), NFTMetadataAttributeValue value = default(NFTMetadataAttributeValue)) { // to ensure "traitType" is required (not null) if (traitType == null) - throw new ArgumentNullException( - "traitType is a required property for NFTMetadataAttribute and cannot be null"); - TraitType = traitType; + { + throw new ArgumentNullException("traitType is a required property for NFTMetadataAttribute and cannot be null"); + } + this.TraitType = traitType; // to ensure "value" is required (not null) if (value == null) - throw new ArgumentNullException( - "value is a required property for NFTMetadataAttribute and cannot be null"); - Value = value; - DisplayType = displayType; + { + throw new ArgumentNullException("value is a required property for NFTMetadataAttribute and cannot be null"); + } + this.Value = value; + this.DisplayType = displayType; } - - /// - /// Display type for this attribute - /// - /// Display type for this attribute - /// number - [DataMember(Name = "display_type", EmitDefaultValue = true)] - public DisplayTypeEnum? DisplayType { get; set; } - /// - /// The metadata trait type + /// The metadata trait type /// /// The metadata trait type /// Aqua Power @@ -100,18 +108,18 @@ public NFTMetadataAttribute(DisplayTypeEnum? displayType = default, string trait public string TraitType { get; set; } /// - /// Gets or Sets Value + /// Gets or Sets Value /// [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public NFTMetadataAttributeValue Value { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NFTMetadataAttribute {\n"); sb.Append(" DisplayType: ").Append(DisplayType).Append("\n"); sb.Append(" TraitType: ").Append(TraitType).Append("\n"); @@ -121,12 +129,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs index e9baa65b..255895e9 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs @@ -10,135 +10,152 @@ using System; +using System.Collections; using System.Collections.Generic; -using System.Diagnostics; +using System.Collections.ObjectModel; +using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using System.Reflection; namespace Immutable.Search.Model { /// - /// The metadata trait value + /// The metadata trait value /// [JsonConverter(typeof(NFTMetadataAttributeValueJsonConverter))] [DataContract(Name = "NFTMetadataAttribute_value")] - public class NFTMetadataAttributeValue : AbstractOpenAPISchema + public partial class NFTMetadataAttributeValue : AbstractOpenAPISchema { - private object _actualInstance; - /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of string. public NFTMetadataAttributeValue(string actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of decimal. public NFTMetadataAttributeValue(decimal actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance; + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance; } /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of bool. public NFTMetadataAttributeValue(bool actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance; + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance; } + + private Object _actualInstance; + /// - /// Gets or Sets ActualInstance + /// Gets or Sets ActualInstance /// - public override object ActualInstance + public override Object ActualInstance { - get => _actualInstance; + get + { + return _actualInstance; + } set { if (value.GetType() == typeof(bool) || value is bool) - _actualInstance = value; + { + this._actualInstance = value; + } else if (value.GetType() == typeof(decimal) || value is decimal) - _actualInstance = value; + { + this._actualInstance = value; + } else if (value.GetType() == typeof(string) || value is string) - _actualInstance = value; + { + this._actualInstance = value; + } else - throw new ArgumentException( - "Invalid instance found. Must be the following types: bool, decimal, string"); + { + throw new ArgumentException("Invalid instance found. Must be the following types: bool, decimal, string"); + } } } /// - /// Get the actual instance of `string`. If the actual instance is not `string`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `string`. If the actual instance is not `string`, + /// the InvalidClassException will be thrown /// /// An instance of string public string GetString() { - return (string)ActualInstance; + return (string)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// the InvalidClassException will be thrown /// /// An instance of decimal public decimal GetDecimal() { - return (decimal)ActualInstance; + return (decimal)this.ActualInstance; } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// the InvalidClassException will be thrown /// /// An instance of bool public bool GetBool() { - return (bool)ActualInstance; + return (bool)this.ActualInstance; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class NFTMetadataAttributeValue {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public override string ToJson() { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); + return JsonConvert.SerializeObject(this.ActualInstance, NFTMetadataAttributeValue.SerializerSettings); } /// - /// Converts the JSON string into an instance of NFTMetadataAttributeValue + /// Converts the JSON string into an instance of NFTMetadataAttributeValue /// /// JSON string /// An instance of NFTMetadataAttributeValue @@ -146,114 +163,121 @@ public static NFTMetadataAttributeValue FromJson(string jsonString) { NFTMetadataAttributeValue newNFTMetadataAttributeValue = null; - if (string.IsNullOrEmpty(jsonString)) return newNFTMetadataAttributeValue; - var match = 0; - var matchedTypes = new List(); + if (string.IsNullOrEmpty(jsonString)) + { + return newNFTMetadataAttributeValue; + } + int match = 0; + List matchedTypes = new List(); try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(bool).GetProperty("AdditionalProperties") == null) - newNFTMetadataAttributeValue = - new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } else - newNFTMetadataAttributeValue = new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("bool"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into bool: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(decimal).GetProperty("AdditionalProperties") == null) - newNFTMetadataAttributeValue = - new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } else - newNFTMetadataAttributeValue = new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("decimal"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(string).GetProperty("AdditionalProperties") == null) - newNFTMetadataAttributeValue = - new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } else - newNFTMetadataAttributeValue = new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("string"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into string: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into string: {1}", jsonString, exception.ToString())); } if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } // deserialization is considered successful at this point if no exception has been thrown. return newNFTMetadataAttributeValue; } + } /// - /// Custom JSON converter for NFTMetadataAttributeValue + /// Custom JSON converter for NFTMetadataAttributeValue /// public class NFTMetadataAttributeValueJsonConverter : JsonConverter { /// - /// To write the JSON string + /// To write the JSON string /// /// JSON writer /// Object to be converted into a JSON string /// JSON Serializer public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - writer.WriteRawValue((string)typeof(NFTMetadataAttributeValue).GetMethod("ToJson").Invoke(value, null)); + writer.WriteRawValue((string)(typeof(NFTMetadataAttributeValue).GetMethod("ToJson").Invoke(value, null))); } /// - /// To convert a JSON string into an object + /// To convert a JSON string into an object /// /// JSON reader /// Object type /// Existing value /// JSON Serializer /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - switch (reader.TokenType) + switch(reader.TokenType) { - case JsonToken.String: + case JsonToken.String: return new NFTMetadataAttributeValue(Convert.ToString(reader.Value)); - case JsonToken.Float: + case JsonToken.Float: return new NFTMetadataAttributeValue(Convert.ToDecimal(reader.Value)); - case JsonToken.Boolean: + case JsonToken.Boolean: return new NFTMetadataAttributeValue(Convert.ToBoolean(reader.Value)); case JsonToken.StartObject: return NFTMetadataAttributeValue.FromJson(JObject.Load(reader).ToString(Formatting.None)); @@ -265,7 +289,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist } /// - /// Check if the object can be converted + /// Check if the object can be converted /// /// Object type /// True if the object can be converted @@ -274,4 +298,5 @@ public override bool CanConvert(Type objectType) return false; } } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs index 322ef83a..b47ece33 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs @@ -10,99 +10,111 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// NFT quote result + /// NFT quote result /// [DataContract(Name = "NFTQuoteResult")] - public class NFTQuoteResult + public partial class NFTQuoteResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected NFTQuoteResult() - { - } - + protected NFTQuoteResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// chain (required). /// tokenId (required). /// marketStack (required). /// marketNft (required). /// marketCollection (required). - public NFTQuoteResult(Chain chain = default, string tokenId = default, Market marketStack = default, - Market marketNft = default, Market marketCollection = default) + public NFTQuoteResult(Chain chain = default(Chain), string tokenId = default(string), Market marketStack = default(Market), Market marketNft = default(Market), Market marketCollection = default(Market)) { // to ensure "chain" is required (not null) if (chain == null) + { throw new ArgumentNullException("chain is a required property for NFTQuoteResult and cannot be null"); - Chain = chain; + } + this.Chain = chain; // to ensure "tokenId" is required (not null) if (tokenId == null) + { throw new ArgumentNullException("tokenId is a required property for NFTQuoteResult and cannot be null"); - TokenId = tokenId; + } + this.TokenId = tokenId; // to ensure "marketStack" is required (not null) if (marketStack == null) - throw new ArgumentNullException( - "marketStack is a required property for NFTQuoteResult and cannot be null"); - MarketStack = marketStack; + { + throw new ArgumentNullException("marketStack is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketStack = marketStack; // to ensure "marketNft" is required (not null) if (marketNft == null) - throw new ArgumentNullException( - "marketNft is a required property for NFTQuoteResult and cannot be null"); - MarketNft = marketNft; + { + throw new ArgumentNullException("marketNft is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketNft = marketNft; // to ensure "marketCollection" is required (not null) if (marketCollection == null) - throw new ArgumentNullException( - "marketCollection is a required property for NFTQuoteResult and cannot be null"); - MarketCollection = marketCollection; + { + throw new ArgumentNullException("marketCollection is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketCollection = marketCollection; } /// - /// Gets or Sets Chain + /// Gets or Sets Chain /// [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] public Chain Chain { get; set; } /// - /// Gets or Sets TokenId + /// Gets or Sets TokenId /// [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] public string TokenId { get; set; } /// - /// Gets or Sets MarketStack + /// Gets or Sets MarketStack /// [DataMember(Name = "market_stack", IsRequired = true, EmitDefaultValue = true)] public Market MarketStack { get; set; } /// - /// Gets or Sets MarketNft + /// Gets or Sets MarketNft /// [DataMember(Name = "market_nft", IsRequired = true, EmitDefaultValue = true)] public Market MarketNft { get; set; } /// - /// Gets or Sets MarketCollection + /// Gets or Sets MarketCollection /// [DataMember(Name = "market_collection", IsRequired = true, EmitDefaultValue = true)] public Market MarketCollection { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NFTQuoteResult {\n"); sb.Append(" Chain: ").Append(Chain).Append("\n"); sb.Append(" TokenId: ").Append(TokenId).Append("\n"); @@ -114,12 +126,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs index 64a1e395..7554bf1a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs @@ -10,65 +10,72 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// NativeToken + /// NativeToken /// [DataContract(Name = "NativeToken")] - public class NativeToken + public partial class NativeToken { /// - /// Token type user is offering, which in this case is the native IMX token + /// Token type user is offering, which in this case is the native IMX token /// /// Token type user is offering, which in this case is the native IMX token [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { /// - /// Enum NATIVE for value: NATIVE + /// Enum NATIVE for value: NATIVE /// - [EnumMember(Value = "NATIVE")] NATIVE = 1 + [EnumMember(Value = "NATIVE")] + NATIVE = 1 } + + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + /// NATIVE + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected NativeToken() - { - } - + protected NativeToken() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Token type user is offering, which in this case is the native IMX token (required). /// The symbol of token (required). - public NativeToken(TypeEnum type = default, string symbol = default) + public NativeToken(TypeEnum type = default(TypeEnum), string symbol = default(string)) { - Type = type; + this.Type = type; // to ensure "symbol" is required (not null) if (symbol == null) + { throw new ArgumentNullException("symbol is a required property for NativeToken and cannot be null"); - Symbol = symbol; + } + this.Symbol = symbol; } - - /// - /// Token type user is offering, which in this case is the native IMX token - /// - /// Token type user is offering, which in this case is the native IMX token - /// NATIVE - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - /// - /// The symbol of token + /// The symbol of token /// /// The symbol of token /// IMX @@ -76,12 +83,12 @@ public NativeToken(TypeEnum type = default, string symbol = default) public string Symbol { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NativeToken {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Symbol: ").Append(Symbol).Append("\n"); @@ -90,12 +97,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs index 19485b67..523cd80c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs @@ -10,72 +10,76 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Pagination properties + /// Pagination properties /// [DataContract(Name = "Page")] - public class Page + public partial class Page { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Page() - { - } - + protected Page() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// First item as an encoded string (required). /// Last item as an encoded string (required). - public Page(string previousCursor = default, string nextCursor = default) + public Page(string previousCursor = default(string), string nextCursor = default(string)) { // to ensure "previousCursor" is required (not null) if (previousCursor == null) + { throw new ArgumentNullException("previousCursor is a required property for Page and cannot be null"); - PreviousCursor = previousCursor; + } + this.PreviousCursor = previousCursor; // to ensure "nextCursor" is required (not null) if (nextCursor == null) + { throw new ArgumentNullException("nextCursor is a required property for Page and cannot be null"); - NextCursor = nextCursor; + } + this.NextCursor = nextCursor; } /// - /// First item as an encoded string + /// First item as an encoded string /// /// First item as an encoded string - /// - /// ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0 - /// = - /// + /// ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= [DataMember(Name = "previous_cursor", IsRequired = true, EmitDefaultValue = true)] public string PreviousCursor { get; set; } /// - /// Last item as an encoded string + /// Last item as an encoded string /// /// Last item as an encoded string - /// - /// ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0 - /// = - /// + /// ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= [DataMember(Name = "next_cursor", IsRequired = true, EmitDefaultValue = true)] public string NextCursor { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Page {\n"); sb.Append(" PreviousCursor: ").Append(PreviousCursor).Append("\n"); sb.Append(" NextCursor: ").Append(NextCursor).Append("\n"); @@ -84,12 +88,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs index de45ca8e..ca736bd8 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs @@ -10,49 +10,55 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Amount details + /// Amount details /// [DataContract(Name = "PaymentAmount")] - public class PaymentAmount + public partial class PaymentAmount { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected PaymentAmount() - { - } - + protected PaymentAmount() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) - /// (required). - /// + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) (required). /// The token amount value in ETH (required). - public PaymentAmount(string value = default, string valueInEth = default) + public PaymentAmount(string value = default(string), string valueInEth = default(string)) { // to ensure "value" is required (not null) if (value == null) + { throw new ArgumentNullException("value is a required property for PaymentAmount and cannot be null"); - Value = value; + } + this.Value = value; // to ensure "valueInEth" is required (not null) if (valueInEth == null) - throw new ArgumentNullException( - "valueInEth is a required property for PaymentAmount and cannot be null"); - ValueInEth = valueInEth; + { + throw new ArgumentNullException("valueInEth is a required property for PaymentAmount and cannot be null"); + } + this.ValueInEth = valueInEth; } /// - /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) /// /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) /// 9750000000000000000 @@ -60,7 +66,7 @@ public PaymentAmount(string value = default, string valueInEth = default) public string Value { get; set; } /// - /// The token amount value in ETH + /// The token amount value in ETH /// /// The token amount value in ETH /// 9750000000000000000 @@ -68,12 +74,12 @@ public PaymentAmount(string value = default, string valueInEth = default) public string ValueInEth { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PaymentAmount {\n"); sb.Append(" Value: ").Append(Value).Append("\n"); sb.Append(" ValueInEth: ").Append(ValueInEth).Append("\n"); @@ -82,12 +88,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs index 4f948551..ba179ea7 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs @@ -10,91 +10,99 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Price details + /// Price details /// [DataContract(Name = "PriceDetails")] - public class PriceDetails + public partial class PriceDetails { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected PriceDetails() - { - } - + protected PriceDetails() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// token (required). /// amount (required). /// feeInclusiveAmount (required). /// fees (required). - public PriceDetails(PriceDetailsToken token = default, PaymentAmount amount = default, - PaymentAmount feeInclusiveAmount = default, List fees = default) + public PriceDetails(PriceDetailsToken token = default(PriceDetailsToken), PaymentAmount amount = default(PaymentAmount), PaymentAmount feeInclusiveAmount = default(PaymentAmount), List fees = default(List)) { // to ensure "token" is required (not null) if (token == null) + { throw new ArgumentNullException("token is a required property for PriceDetails and cannot be null"); - Token = token; + } + this.Token = token; // to ensure "amount" is required (not null) if (amount == null) + { throw new ArgumentNullException("amount is a required property for PriceDetails and cannot be null"); - Amount = amount; + } + this.Amount = amount; // to ensure "feeInclusiveAmount" is required (not null) if (feeInclusiveAmount == null) - throw new ArgumentNullException( - "feeInclusiveAmount is a required property for PriceDetails and cannot be null"); - FeeInclusiveAmount = feeInclusiveAmount; + { + throw new ArgumentNullException("feeInclusiveAmount is a required property for PriceDetails and cannot be null"); + } + this.FeeInclusiveAmount = feeInclusiveAmount; // to ensure "fees" is required (not null) if (fees == null) + { throw new ArgumentNullException("fees is a required property for PriceDetails and cannot be null"); - Fees = fees; + } + this.Fees = fees; } /// - /// Gets or Sets Token + /// Gets or Sets Token /// [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] public PriceDetailsToken Token { get; set; } /// - /// Gets or Sets Amount + /// Gets or Sets Amount /// [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] public PaymentAmount Amount { get; set; } /// - /// Gets or Sets FeeInclusiveAmount + /// Gets or Sets FeeInclusiveAmount /// [DataMember(Name = "fee_inclusive_amount", IsRequired = true, EmitDefaultValue = true)] public PaymentAmount FeeInclusiveAmount { get; set; } /// - /// Gets or Sets Fees + /// Gets or Sets Fees /// - /// - /// [{"type":"TAKER_ECOSYSTEM","recipient_address" - /// :1390849295786071768276380950238675083608645509683,"amount":"1000000000000000000"}] - /// + /// [{"type":"TAKER_ECOSYSTEM","recipient_address":1390849295786071768276380950238675083608645509683,"amount":"1000000000000000000"}] [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] public List Fees { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PriceDetails {\n"); sb.Append(" Token: ").Append(Token).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); @@ -105,12 +113,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs index 8fae09ae..834857b5 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs @@ -10,111 +10,126 @@ using System; +using System.Collections; using System.Collections.Generic; -using System.Diagnostics; +using System.Collections.ObjectModel; +using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using System.Reflection; namespace Immutable.Search.Model { /// - /// Token details + /// Token details /// [JsonConverter(typeof(PriceDetailsTokenJsonConverter))] [DataContract(Name = "PriceDetails_token")] - public class PriceDetailsToken : AbstractOpenAPISchema + public partial class PriceDetailsToken : AbstractOpenAPISchema { - private object _actualInstance; - /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of NativeToken. public PriceDetailsToken(NativeToken actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of ERC20Token. public PriceDetailsToken(ERC20Token actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + + private Object _actualInstance; + /// - /// Gets or Sets ActualInstance + /// Gets or Sets ActualInstance /// - public override object ActualInstance + public override Object ActualInstance { - get => _actualInstance; + get + { + return _actualInstance; + } set { if (value.GetType() == typeof(ERC20Token) || value is ERC20Token) - _actualInstance = value; + { + this._actualInstance = value; + } else if (value.GetType() == typeof(NativeToken) || value is NativeToken) - _actualInstance = value; + { + this._actualInstance = value; + } else - throw new ArgumentException( - "Invalid instance found. Must be the following types: ERC20Token, NativeToken"); + { + throw new ArgumentException("Invalid instance found. Must be the following types: ERC20Token, NativeToken"); + } } } /// - /// Get the actual instance of `NativeToken`. If the actual instance is not `NativeToken`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `NativeToken`. If the actual instance is not `NativeToken`, + /// the InvalidClassException will be thrown /// /// An instance of NativeToken public NativeToken GetNativeToken() { - return (NativeToken)ActualInstance; + return (NativeToken)this.ActualInstance; } /// - /// Get the actual instance of `ERC20Token`. If the actual instance is not `ERC20Token`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `ERC20Token`. If the actual instance is not `ERC20Token`, + /// the InvalidClassException will be thrown /// /// An instance of ERC20Token public ERC20Token GetERC20Token() { - return (ERC20Token)ActualInstance; + return (ERC20Token)this.ActualInstance; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class PriceDetailsToken {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public override string ToJson() { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); + return JsonConvert.SerializeObject(this.ActualInstance, PriceDetailsToken.SerializerSettings); } /// - /// Converts the JSON string into an instance of PriceDetailsToken + /// Converts the JSON string into an instance of PriceDetailsToken /// /// JSON string /// An instance of PriceDetailsToken @@ -122,91 +137,95 @@ public static PriceDetailsToken FromJson(string jsonString) { PriceDetailsToken newPriceDetailsToken = null; - if (string.IsNullOrEmpty(jsonString)) return newPriceDetailsToken; - var match = 0; - var matchedTypes = new List(); + if (string.IsNullOrEmpty(jsonString)) + { + return newPriceDetailsToken; + } + int match = 0; + List matchedTypes = new List(); try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(ERC20Token).GetProperty("AdditionalProperties") == null) - newPriceDetailsToken = - new PriceDetailsToken( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.SerializerSettings)); + } else - newPriceDetailsToken = - new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); + { + newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("ERC20Token"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into ERC20Token: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC20Token: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(NativeToken).GetProperty("AdditionalProperties") == null) - newPriceDetailsToken = - new PriceDetailsToken( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.SerializerSettings)); + } else - newPriceDetailsToken = - new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); + { + newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("NativeToken"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into NativeToken: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into NativeToken: {1}", jsonString, exception.ToString())); } if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } // deserialization is considered successful at this point if no exception has been thrown. return newPriceDetailsToken; } + } /// - /// Custom JSON converter for PriceDetailsToken + /// Custom JSON converter for PriceDetailsToken /// public class PriceDetailsTokenJsonConverter : JsonConverter { /// - /// To write the JSON string + /// To write the JSON string /// /// JSON writer /// Object to be converted into a JSON string /// JSON Serializer public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - writer.WriteRawValue((string)typeof(PriceDetailsToken).GetMethod("ToJson").Invoke(value, null)); + writer.WriteRawValue((string)(typeof(PriceDetailsToken).GetMethod("ToJson").Invoke(value, null))); } /// - /// To convert a JSON string into an object + /// To convert a JSON string into an object /// /// JSON reader /// Object type /// Existing value /// JSON Serializer /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - switch (reader.TokenType) + switch(reader.TokenType) { case JsonToken.StartObject: return PriceDetailsToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); @@ -218,7 +237,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist } /// - /// Check if the object can be converted + /// Check if the object can be converted /// /// Object type /// True if the object can be converted @@ -227,4 +246,5 @@ public override bool CanConvert(Type objectType) return false; } } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs index b87dd9d7..52618f1e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs @@ -10,66 +10,73 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Quotes for NFTs result + /// Quotes for NFTs result /// [DataContract(Name = "QuotesForNFTsResult")] - public class QuotesForNFTsResult + public partial class QuotesForNFTsResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected QuotesForNFTsResult() - { - } - + protected QuotesForNFTsResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// List of quotes (required). /// page (required). - public QuotesForNFTsResult(List result = default, Page page = default) + public QuotesForNFTsResult(List result = default(List), Page page = default(Page)) { // to ensure "result" is required (not null) if (result == null) - throw new ArgumentNullException( - "result is a required property for QuotesForNFTsResult and cannot be null"); - Result = result; + { + throw new ArgumentNullException("result is a required property for QuotesForNFTsResult and cannot be null"); + } + this.Result = result; // to ensure "page" is required (not null) if (page == null) - throw new ArgumentNullException( - "page is a required property for QuotesForNFTsResult and cannot be null"); - Page = page; + { + throw new ArgumentNullException("page is a required property for QuotesForNFTsResult and cannot be null"); + } + this.Page = page; } /// - /// List of quotes + /// List of quotes /// /// List of quotes [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] public List Result { get; set; } /// - /// Gets or Sets Page + /// Gets or Sets Page /// [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] public Page Page { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class QuotesForNFTsResult {\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" Page: ").Append(Page).Append("\n"); @@ -78,12 +85,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs index 931c5eb4..a405a4c4 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs @@ -10,66 +10,73 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Quotes for stacks result + /// Quotes for stacks result /// [DataContract(Name = "QuotesForStacksResult")] - public class QuotesForStacksResult + public partial class QuotesForStacksResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected QuotesForStacksResult() - { - } - + protected QuotesForStacksResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// List of quotes (required). /// page (required). - public QuotesForStacksResult(List result = default, Page page = default) + public QuotesForStacksResult(List result = default(List), Page page = default(Page)) { // to ensure "result" is required (not null) if (result == null) - throw new ArgumentNullException( - "result is a required property for QuotesForStacksResult and cannot be null"); - Result = result; + { + throw new ArgumentNullException("result is a required property for QuotesForStacksResult and cannot be null"); + } + this.Result = result; // to ensure "page" is required (not null) if (page == null) - throw new ArgumentNullException( - "page is a required property for QuotesForStacksResult and cannot be null"); - Page = page; + { + throw new ArgumentNullException("page is a required property for QuotesForStacksResult and cannot be null"); + } + this.Page = page; } /// - /// List of quotes + /// List of quotes /// /// List of quotes [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] public List Result { get; set; } /// - /// Gets or Sets Page + /// Gets or Sets Page /// [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] public Page Page { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class QuotesForStacksResult {\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" Page: ").Append(Page).Append("\n"); @@ -78,12 +85,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs index 129958b4..ee4a3f16 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs @@ -10,66 +10,73 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Search stacks result + /// Search stacks result /// [DataContract(Name = "SearchStacksResult")] - public class SearchStacksResult + public partial class SearchStacksResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected SearchStacksResult() - { - } - + protected SearchStacksResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// List of stack bundles (required). /// page (required). - public SearchStacksResult(List result = default, Page page = default) + public SearchStacksResult(List result = default(List), Page page = default(Page)) { // to ensure "result" is required (not null) if (result == null) - throw new ArgumentNullException( - "result is a required property for SearchStacksResult and cannot be null"); - Result = result; + { + throw new ArgumentNullException("result is a required property for SearchStacksResult and cannot be null"); + } + this.Result = result; // to ensure "page" is required (not null) if (page == null) - throw new ArgumentNullException( - "page is a required property for SearchStacksResult and cannot be null"); - Page = page; + { + throw new ArgumentNullException("page is a required property for SearchStacksResult and cannot be null"); + } + this.Page = page; } /// - /// List of stack bundles + /// List of stack bundles /// /// List of stack bundles [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] public List Result { get; set; } /// - /// Gets or Sets Page + /// Gets or Sets Page /// [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] public Page Page { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SearchStacksResult {\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" Page: ").Append(Page).Append("\n"); @@ -78,12 +85,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs index 78b0cbe9..e0802df2 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs @@ -10,29 +10,34 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Stack + /// Stack /// [DataContract(Name = "Stack")] - public class Stack + public partial class Stack { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Stack() - { - } - + protected Stack() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Stack ID (required). /// chain (required). @@ -46,74 +51,89 @@ protected Stack() /// The animation url of the NFT (required). /// The youtube URL of NFT (required). /// List of Metadata attributes (required). - public Stack(Guid stackId = default, Chain chain = default, string contractAddress = default, - DateTime createdAt = default, DateTime updatedAt = default, string name = default, - string description = default, string image = default, string externalUrl = default, - string animationUrl = default, string youtubeUrl = default, List attributes = default) + public Stack(Guid stackId = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) { - StackId = stackId; + this.StackId = stackId; // to ensure "chain" is required (not null) if (chain == null) + { throw new ArgumentNullException("chain is a required property for Stack and cannot be null"); - Chain = chain; + } + this.Chain = chain; // to ensure "contractAddress" is required (not null) if (contractAddress == null) + { throw new ArgumentNullException("contractAddress is a required property for Stack and cannot be null"); - ContractAddress = contractAddress; - CreatedAt = createdAt; - UpdatedAt = updatedAt; + } + this.ContractAddress = contractAddress; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; // to ensure "name" is required (not null) if (name == null) + { throw new ArgumentNullException("name is a required property for Stack and cannot be null"); - Name = name; + } + this.Name = name; // to ensure "description" is required (not null) if (description == null) + { throw new ArgumentNullException("description is a required property for Stack and cannot be null"); - Description = description; + } + this.Description = description; // to ensure "image" is required (not null) if (image == null) + { throw new ArgumentNullException("image is a required property for Stack and cannot be null"); - Image = image; + } + this.Image = image; // to ensure "externalUrl" is required (not null) if (externalUrl == null) + { throw new ArgumentNullException("externalUrl is a required property for Stack and cannot be null"); - ExternalUrl = externalUrl; + } + this.ExternalUrl = externalUrl; // to ensure "animationUrl" is required (not null) if (animationUrl == null) + { throw new ArgumentNullException("animationUrl is a required property for Stack and cannot be null"); - AnimationUrl = animationUrl; + } + this.AnimationUrl = animationUrl; // to ensure "youtubeUrl" is required (not null) if (youtubeUrl == null) + { throw new ArgumentNullException("youtubeUrl is a required property for Stack and cannot be null"); - YoutubeUrl = youtubeUrl; + } + this.YoutubeUrl = youtubeUrl; // to ensure "attributes" is required (not null) if (attributes == null) + { throw new ArgumentNullException("attributes is a required property for Stack and cannot be null"); - Attributes = attributes; + } + this.Attributes = attributes; } /// - /// Stack ID + /// Stack ID /// /// Stack ID [DataMember(Name = "stack_id", IsRequired = true, EmitDefaultValue = true)] public Guid StackId { get; set; } /// - /// Gets or Sets Chain + /// Gets or Sets Chain /// [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] public Chain Chain { get; set; } /// - /// Contract address + /// Contract address /// /// Contract address [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] public string ContractAddress { get; set; } /// - /// When the metadata was created + /// When the metadata was created /// /// When the metadata was created /// 2022-08-16T17:43:26.991388Z @@ -121,7 +141,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public DateTime CreatedAt { get; set; } /// - /// When the metadata was last updated + /// When the metadata was last updated /// /// When the metadata was last updated /// 2022-08-16T17:43:26.991388Z @@ -129,7 +149,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public DateTime UpdatedAt { get; set; } /// - /// The name of the NFT + /// The name of the NFT /// /// The name of the NFT /// Sword @@ -137,7 +157,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public string Name { get; set; } /// - /// The description of the NFT + /// The description of the NFT /// /// The description of the NFT /// 2022-08-16T17:43:26.991388Z @@ -145,7 +165,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public string Description { get; set; } /// - /// The image url of the NFT + /// The image url of the NFT /// /// The image url of the NFT /// https://some-url @@ -153,7 +173,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public string Image { get; set; } /// - /// The external website link of NFT + /// The external website link of NFT /// /// The external website link of NFT /// https://some-url @@ -161,7 +181,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public string ExternalUrl { get; set; } /// - /// The animation url of the NFT + /// The animation url of the NFT /// /// The animation url of the NFT /// https://some-url @@ -169,7 +189,7 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public string AnimationUrl { get; set; } /// - /// The youtube URL of NFT + /// The youtube URL of NFT /// /// The youtube URL of NFT /// https://some-url @@ -177,19 +197,19 @@ public Stack(Guid stackId = default, Chain chain = default, string contractAddre public string YoutubeUrl { get; set; } /// - /// List of Metadata attributes + /// List of Metadata attributes /// /// List of Metadata attributes [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] public List Attributes { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Stack {\n"); sb.Append(" StackId: ").Append(StackId).Append("\n"); sb.Append(" Chain: ").Append(Chain).Append("\n"); @@ -208,12 +228,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs index faf4f8fe..7b58f4a4 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs @@ -10,60 +10,70 @@ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Stack bundle includes stacks, markets and listings + /// Stack bundle includes stacks, markets and listings /// [DataContract(Name = "StackBundle")] - public class StackBundle + public partial class StackBundle { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected StackBundle() - { - } - + protected StackBundle() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// stack (required). /// Total count of NFTs in the stack matching the filter params (required). /// market (required). /// List of open listings for the stack. (required). - public StackBundle(Stack stack = default, int stackCount = default, Market market = default, - List listings = default) + public StackBundle(Stack stack = default(Stack), int stackCount = default(int), Market market = default(Market), List listings = default(List)) { // to ensure "stack" is required (not null) if (stack == null) + { throw new ArgumentNullException("stack is a required property for StackBundle and cannot be null"); - Stack = stack; - StackCount = stackCount; + } + this.Stack = stack; + this.StackCount = stackCount; // to ensure "market" is required (not null) if (market == null) + { throw new ArgumentNullException("market is a required property for StackBundle and cannot be null"); - Market = market; + } + this.Market = market; // to ensure "listings" is required (not null) if (listings == null) + { throw new ArgumentNullException("listings is a required property for StackBundle and cannot be null"); - Listings = listings; + } + this.Listings = listings; } /// - /// Gets or Sets Stack + /// Gets or Sets Stack /// [DataMember(Name = "stack", IsRequired = true, EmitDefaultValue = true)] public Stack Stack { get; set; } /// - /// Total count of NFTs in the stack matching the filter params + /// Total count of NFTs in the stack matching the filter params /// /// Total count of NFTs in the stack matching the filter params /// 1 @@ -71,25 +81,25 @@ public StackBundle(Stack stack = default, int stackCount = default, Market marke public int StackCount { get; set; } /// - /// Gets or Sets Market + /// Gets or Sets Market /// [DataMember(Name = "market", IsRequired = true, EmitDefaultValue = true)] public Market Market { get; set; } /// - /// List of open listings for the stack. + /// List of open listings for the stack. /// /// List of open listings for the stack. [DataMember(Name = "listings", IsRequired = true, EmitDefaultValue = true)] public List Listings { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class StackBundle {\n"); sb.Append(" Stack: ").Append(Stack).Append("\n"); sb.Append(" StackCount: ").Append(StackCount).Append("\n"); @@ -100,12 +110,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs index 62dc557e..5b25e391 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs @@ -10,84 +10,93 @@ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; namespace Immutable.Search.Model { /// - /// Stack quote result + /// Stack quote result /// [DataContract(Name = "StackQuoteResult")] - public class StackQuoteResult + public partial class StackQuoteResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected StackQuoteResult() - { - } - + protected StackQuoteResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// chain (required). /// stackId (required). /// marketStack (required). /// marketCollection (required). - public StackQuoteResult(Chain chain = default, Guid stackId = default, Market marketStack = default, - Market marketCollection = default) + public StackQuoteResult(Chain chain = default(Chain), Guid stackId = default(Guid), Market marketStack = default(Market), Market marketCollection = default(Market)) { // to ensure "chain" is required (not null) if (chain == null) + { throw new ArgumentNullException("chain is a required property for StackQuoteResult and cannot be null"); - Chain = chain; - StackId = stackId; + } + this.Chain = chain; + this.StackId = stackId; // to ensure "marketStack" is required (not null) if (marketStack == null) - throw new ArgumentNullException( - "marketStack is a required property for StackQuoteResult and cannot be null"); - MarketStack = marketStack; + { + throw new ArgumentNullException("marketStack is a required property for StackQuoteResult and cannot be null"); + } + this.MarketStack = marketStack; // to ensure "marketCollection" is required (not null) if (marketCollection == null) - throw new ArgumentNullException( - "marketCollection is a required property for StackQuoteResult and cannot be null"); - MarketCollection = marketCollection; + { + throw new ArgumentNullException("marketCollection is a required property for StackQuoteResult and cannot be null"); + } + this.MarketCollection = marketCollection; } /// - /// Gets or Sets Chain + /// Gets or Sets Chain /// [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] public Chain Chain { get; set; } /// - /// Gets or Sets StackId + /// Gets or Sets StackId /// [DataMember(Name = "stack_id", IsRequired = true, EmitDefaultValue = true)] public Guid StackId { get; set; } /// - /// Gets or Sets MarketStack + /// Gets or Sets MarketStack /// [DataMember(Name = "market_stack", IsRequired = true, EmitDefaultValue = true)] public Market MarketStack { get; set; } /// - /// Gets or Sets MarketCollection + /// Gets or Sets MarketCollection /// [DataMember(Name = "market_collection", IsRequired = true, EmitDefaultValue = true)] public Market MarketCollection { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class StackQuoteResult {\n"); sb.Append(" Chain: ").Append(Chain).Append("\n"); sb.Append(" StackId: ").Append(StackId).Append("\n"); @@ -98,12 +107,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/SequenceManager.cs b/Assets/Shared/Scripts/SequenceManager.cs index 6da89566..0758d415 100644 --- a/Assets/Shared/Scripts/SequenceManager.cs +++ b/Assets/Shared/Scripts/SequenceManager.cs @@ -19,7 +19,9 @@ public class SequenceManager : AbstractSingleton [SerializeField] private GameObject[] m_LevelManagers; - [Header("Events")][SerializeField] private AbstractGameEvent m_ContinueEvent; + [Header("Events")] + [SerializeField] + private AbstractGameEvent m_ContinueEvent; [SerializeField] private AbstractGameEvent m_BackEvent; [SerializeField] private AbstractGameEvent m_WinEvent; @@ -32,7 +34,9 @@ public class SequenceManager : AbstractSingleton [SerializeField] private AbstractGameEvent m_InventoryEvent; [SerializeField] private AbstractGameEvent m_MarketplaceEvent; - [Header("Other")][SerializeField] private float m_SplashDelay = 2f; + [Header("Other")] + [SerializeField] + private float m_SplashDelay = 2f; private readonly List m_LevelStates = new(); diff --git a/Assets/Shared/Scripts/UI/AssetDetailsView.cs b/Assets/Shared/Scripts/UI/AssetDetailsView.cs index c2510957..ace8f014 100644 --- a/Assets/Shared/Scripts/UI/AssetDetailsView.cs +++ b/Assets/Shared/Scripts/UI/AssetDetailsView.cs @@ -369,7 +369,7 @@ private async UniTask SignListing(PrepareListing200Response prepareListi // Use Unity Passport package to sign typed data function to sign the listing payload return await Passport.Instance.ZkEvmSignTypedDataV4( - JsonConvert.SerializeObject(message, Formatting.Indented)); + JsonConvert.SerializeObject(message, Formatting.Indented)); } /// diff --git a/Assets/Shared/Scripts/UI/InventoryScreen.cs b/Assets/Shared/Scripts/UI/InventoryScreen.cs index 0e855083..b275520f 100644 --- a/Assets/Shared/Scripts/UI/InventoryScreen.cs +++ b/Assets/Shared/Scripts/UI/InventoryScreen.cs @@ -6,6 +6,10 @@ using Immutable.Passport; using UnityEngine; using Xsolla.Core; +using TMPro; +using Immutable.Search.Client; +using Immutable.Search.Model; +using Immutable.Search.Api; namespace HyperCasual.Runner { @@ -20,8 +24,8 @@ public class InventoryScreen : View [SerializeField] private BalanceObject m_Balance; [SerializeField] private AssetListObject m_AssetObj; [SerializeField] private Transform m_ListParent; - // [SerializeField] private InfiniteScrollView m_ScrollView; [SerializeField] private InfiniteScrollGridView m_ScrollView; + [SerializeField] private AddFunds m_AddFunds; private readonly List m_Assets = new(); // Pagination @@ -193,7 +197,7 @@ private void OnBackButtonClick() /// private void OnAddFundsButtonClick() { - XsollaWebBrowser.Open("https://checkout-playground.sandbox.immutable.com/embedded/add-funds"); + m_AddFunds.Show(); } } } \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/LevelSelectionScreen.cs b/Assets/Shared/Scripts/UI/LevelSelectionScreen.cs index 3ccde8c5..722e8a65 100644 --- a/Assets/Shared/Scripts/UI/LevelSelectionScreen.cs +++ b/Assets/Shared/Scripts/UI/LevelSelectionScreen.cs @@ -15,7 +15,9 @@ public class LevelSelectionScreen : View [SerializeField] private HyperCasualButton m_BackButton; - [Space][SerializeField] private LevelSelectButton m_LevelButtonPrefab; + [Space] + [SerializeField] + private LevelSelectButton m_LevelButtonPrefab; [SerializeField] private RectTransform m_LevelButtonsRoot; diff --git a/Assets/Shared/Scripts/UI/MarketplaceScreen.cs b/Assets/Shared/Scripts/UI/MarketplaceScreen.cs index be0d3083..52d08bd9 100644 --- a/Assets/Shared/Scripts/UI/MarketplaceScreen.cs +++ b/Assets/Shared/Scripts/UI/MarketplaceScreen.cs @@ -19,7 +19,7 @@ public class MarketplaceScreen : View { // Lists of available colours and speeds for filtering private static readonly List s_Colours = new() - { "All", "Tropical Indigo", "Cyclamen", "Robin Egg Blue", "Mint", "Mindaro", "Amaranth Pink" }; + { "All", "Tropical Indigo", "Cyclamen", "Robin Egg Blue", "Mint", "Mindaro", "Amaranth Pink" }; private static readonly List s_Speeds = new() { "All", "Slow", "Medium", "Fast" }; diff --git a/Assets/Unity.Hypercasual.asmdef b/Assets/Unity.Hypercasual.asmdef index 7025cda2..a1653e05 100644 --- a/Assets/Unity.Hypercasual.asmdef +++ b/Assets/Unity.Hypercasual.asmdef @@ -1,25 +1,27 @@ { - "name": "Unity.Hypercasual", - "rootNamespace": "", - "references": [ - "GUID:75469ad4d38634e559750d17036d5f7c", - "GUID:6055be8ebefd69e48b49212b09b47b2f", - "GUID:ff6de30450f3748908ff580f6ec64d9a", - "GUID:78c2789dfc155bf4b9e815b0ca402b9b", - "GUID:b68f5bb197434c84c8a4cc3e45e8408b", - "GUID:9fc1342f87877ac42a37b19ac1c6653c", - "GUID:f51ebe6a0ceec4240a699833d6309b23", - "GUID:39350674e628e4d2aa1dbede8297dcb0", - "GUID:a0996310e1aa34b7fbf14df5d255461d", - "GUID:c7a369c5a572d4b6b84cab646212889e" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [], - "noEngineReferences": false + "name": "Unity.Hypercasual", + "rootNamespace": "", + "references": [ + "GUID:75469ad4d38634e559750d17036d5f7c", + "GUID:6055be8ebefd69e48b49212b09b47b2f", + "GUID:ff6de30450f3748908ff580f6ec64d9a", + "GUID:78c2789dfc155bf4b9e815b0ca402b9b", + "GUID:b68f5bb197434c84c8a4cc3e45e8408b", + "GUID:9fc1342f87877ac42a37b19ac1c6653c", + "GUID:f51ebe6a0ceec4240a699833d6309b23", + "GUID:39350674e628e4d2aa1dbede8297dcb0", + "GUID:a0996310e1aa34b7fbf14df5d255461d", + "GUID:c7a369c5a572d4b6b84cab646212889e", + "GUID:95d173a3e67b39d40803000ed05b79f4", + "GUID:95a2b1ff23bee4357a10943aba1b014d" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false } \ No newline at end of file diff --git a/Packages/manifest.json b/Packages/manifest.json index 549a1152..1ea04d53 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -3,6 +3,7 @@ "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.3.3", "com.immutable.passport": "file:/Users/natalie/Development/unity-immutable-sdk/src/Packages/Passport", "com.immutable.orderbook": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Orderbook", + "com.immutable.marketplace": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Marketplace", "com.nobi.roundedcorners": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git", "com.unity.collab-proxy": "2.0.4", "com.unity.ide.rider": "3.0.31", @@ -59,4 +60,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 6dc09fe5..952860c3 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -7,6 +7,15 @@ "dependencies": {}, "hash": "b992a061fbf68ff1eb475d0837065b0549ed31ba" }, + "com.immutable.marketplace": { + "version": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Marketplace", + "depth": 0, + "source": "git", + "dependencies": { + "com.cysharp.unitask": "2.3.3" + }, + "hash": "01fdea8065a855144ab98514d95f70e8d9a2f74e" + }, "com.immutable.orderbook": { "version": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Orderbook", "depth": 0, diff --git a/mint-backend/src/index.ts b/mint-backend/src/index.ts index 343c0896..65ffdd4a 100644 --- a/mint-backend/src/index.ts +++ b/mint-backend/src/index.ts @@ -4,15 +4,11 @@ import express, { Request, Response, } from 'express'; -import axios from 'axios'; import cors from 'cors'; import http from 'http'; import { providers, Wallet, Contract, utils } from 'ethers'; import morgan from 'morgan'; import dotenv from 'dotenv'; -import { config, orderbook } from '@imtbl/sdk'; -import { TransactionAction, FeeValue } from '@imtbl/sdk/dist/orderbook'; -import { v4 as uuidv4 } from 'uuid'; dotenv.config(); @@ -23,8 +19,6 @@ app.use(express.json()); // Handle JSON app.use(cors()); // Enable CORS const router: Router = express.Router(); -const apiEnv = 'dev'; -const chainName = 'imtbl-zkevm-devnet'; const zkEvmProvider = new providers.JsonRpcProvider(`https://rpc.dev.immutable.com`); // Contract addresses